Run ❯
Get your
own Python
server
×
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"]