Write a NumPy program to generate an array of 15 random numbers from a standard normal distribution
- برمجة بايثون
- 2021-09-10
- mhanasmh00489829403
الأجوبة
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 ]
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال