mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
7 lines
163 B
Python
7 lines
163 B
Python
def shuffle(L):
|
|
for i in range(len(L)):
|
|
j = randint(i, len(L) - 1)
|
|
L[i], L[j] = L[j], L[i]
|
|
|
|
def choice(L):
|
|
return L[randint(0, len(L) - 1)] |