np.random.randint(1,100,10)

The function randint(low,high,num) produces an array of num elements. The array contains uniform integer random number between low (inclusive) and high (exclusive).