Write a NumPy program to generate a random number between 0 and 1
import numpy as np rand_num = np.random.normal(0,1,1) print("Random number between 0 and 1:") print(rand_num)
Sample Output:
Random number between 0 and 1: [-1.15262276]
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer