Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import random def myfunction(): return 0.1 mylist = ["apple", "banana", "cherry"] random.shuffle(mylist, myfunction) print(mylist)
["banana", "cherry", "apple"]