You're converting it to a list, shuffling that list, then discarding it. Try x = list(x) followed by random.shuffle(x) .
確定! 回上一頁