Write a NumPy program to generate five random numbers from the normal distribution

  • برمجة بايثون

Write a NumPy program to generate five random numbers from the normal distribution.

الأجوبة

import numpy as np
x = np.random.normal(size=5)
print(x)

Sample Output:

[-1.85145616 -0.4639516   0.49787567  1.23607083 -1.33332987]
هل كان المحتوى مفيد؟

تبحث عن مدرس اونلاين؟

محتاج مساعدة باختيار المدرس الافضل؟ تواصل مع فريقنا الان لمساعدتك بتأمين افضل مدرس
ماهو التخصص الذي تبحث عنه؟
اكتب هنا...