Question: I saw this code np.sort(np.random.rand(10)*10-5) what does it mean. My interpretation is this step arranges by order a sample of 10 elements from unif with
I saw this code
np.sort(np.random.rand(10)*10-5)
what does it mean. My interpretation is
"this step arranges by order a sample of 10 elements from unif with stdev 10 and mean 5"
I'm only interest in the part np.random.rand(10)*10-5
Is this correct. If so why or why not and please correct it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
