How can I generate non-repetitive random numbers in numpy?
list = np.random.random_integers(20,size=(10))
I think numpy.random.sample
doesn't work right, now. This is my way:
import numpy as np
np.random.choice(range(20), 10, replace=False)