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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!