This repository has been archived on 2026-10-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2026-09-22 11:52:03 +02:00

15 lines
212 B
Python

import numpy as np
def pick(lst):
if len(locals()) < 2:
n = 1
lst = np.array(lst)
# i = np.random.permutation(len(lst))
i = np.random.randint(len(lst))
k = lst[i]
return k, i