Q:

Write a NumPy program to generate an array of 15 random numbers from a standard normal distribution

0

Write a NumPy program to generate an array of 15 random numbers from a standard normal distribution

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import numpy as np
rand_num = np.random.normal(0,1,15)
print("15 random numbers from a standard normal distribution:")
print(rand_num)

Sample Output:

15 random numbers from a standard normal distribution:
[ 0.42690788  1.81615544  0.36591912 -0.41417837 -1.13061369 -1.31777265
  0.03659045  0.60765805 -0.2148491   0.25934697 -0.89221431  0.33059367
 -0.59079163  0.29665161 -0.2753327 ]

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now