Generate random int from 0 up to Nimport numpy as np # generate a single int from 0 to 100 (exclusive) np.random.randint(0,100) # >>> 56 # generate 5 random ints from 0 to 100 (exclusive) np.random.randint(0,100, size=5) # >>> [29,52,89,9,22,3]
Good to know that.