Archived
Initial commit
This commit is contained in:
commit
d89b82be4a
103 files changed
+23110
No files matched your search
+14
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in new issue
Block a user