Write a NumPy program to create a one dimensional array of forty pseudo-randomly generated values. Select random numbers from a uniform distribution between 0 and 1
- برمجة بايثون
- 2021-09-11
- mhanasmh00489829403
الأجوبة
import numpy as np
np.random.seed(10)
print(np.random.rand(40))
Sample Output:
[0.77132064 0.02075195 0.63364823 0.74880388 0.49850701 0.22479665 0.19806286 0.76053071 0.16911084 0.08833981 0.68535982 0.95339335 0.00394827 0.51219226 0.81262096 0.61252607 0.72175532 0.29187607 0.91777412 0.71457578 0.54254437 0.14217005 0.37334076 0.67413362 0.44183317 0.43401399 0.61776698 0.51313824 0.65039718 0.60103895 0.8052232 0.52164715 0.90864888 0.31923609 0.09045935 0.30070006 0.11398436 0.82868133 0.04689632 0.62628715]
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال