np creating random int arrays code example
Example 1: numpy randint
>>> np.random.randint(2, size=10)
array([1, 0, 0, 0, 1, 1, 0, 0, 1, 0]) # random
>>> np.random.randint(1, size=10)
array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
Example 2: random.randint(0,20) + pyrthon
random.randint(0,20)