1np.random.randint(2, size=10) # Creates binary sample of size 10
2np.random.randint(5, size=10) # Creates sample with 0-4 as values of size 10
3
4np.random.randint(5, size=(2, 4))
1import numpy as np
2
3randi_arr = np.random.randint(start, end, dimensions)
4#random integers will be sampled from [start, end) (end not inclusive)
5#end is optional; if end is not specified, random integers will be sampled from [0, start) (start not inclusive)
6#dimensions can be specified as shown here; (m,n) #2D array with size 'm x n'