Hi, I'm needing to generate a list of 10,000 different numbers between -1 and 1. I then have to arrange them in ascending order. Basically I have one array(randomnum) filled with the random numbers and I am filling another one(position) with the numbers in ascending order. I'm not entirely sure if how I'm generating the numbers is correct, but I feel like everything else is correct. Any help would be appreciated.
Thank you that worked. Now however, my sorted list is wrong, haha. I believe what's happening is that I'm generating a new list for every iteration of i, so it's using different numbers each time. Could I just define