np.random.random_sample numpy code example Example: Random Numbers in NumPy from numpy import random x = random.randint(100) print(x)