Get your own Python server Result Size: 625 x 565
x
 
import random
def myfunction():
  return 0.1
mylist = ["apple", "banana", "cherry"]
random.shuffle(mylist, myfunction)
print(mylist)
["banana", "cherry", "apple"]