xxxxxxxxxx
import numpy as np
# Creates a numpy array of shape (4,5), filled with random integers between 0 (inclusive) and 10 (exclusive)
rand_array = np.random.randint(0,10,(4,5))
xxxxxxxxxx
import numpy as np
# Generate a single random number between 0 and 1
random_number = np.random.random()
print(random_number)
# Generate an array of 5 random numbers between 0 and 1
random_array = np.random.random(5)
print(random_array)