Python3.5 random.shuffle cannot successfully disrupt

I messed up the list with random.shuffle, but it was still in the same order

import random
a = [20,16,10,5]
random.shuffle (a)
print ("randomly sorted list:", a)

clipboard.png

I can just try it on my classmate"s computer. Is it python3.5
that I am missing something?

Feb.27,2021

look at how the source code is implemented, and check the output to troubleshoot the problem. If there is something wrong with the system function, others don't have the same environment as you


clipboard.png

.
Menu