NUMPY BASIC EXERCISE 17
Write a solution in Numpy that generates a random value between 0 and 10.
In this exercise, we are going to generate a random number between 0 and 10
Note: normal(loc=0.0, scale=1.0, size=None). Draw random samples from a normal (Gaussian) distribution. The probability density function of the normal distribution, first derived by De Moivre and 200 years later by both Gauss and Laplace independently.
Code
import numpy as np rand = np.random.normal(0,10) print("Random value between 0 and 10") print(rand)
Output
import numpy as np
rand = np.random.normal(0,10)
print("Random value between 0 and 10")
print(rand)