pocketpy/python/random.py
blueloveTH 3b13b1a988 up
Update build.py

up

up
2023-03-05 02:05:39 +08:00

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)]