Hi everyone,
So I have a script that is essentially an equation.
Each variable in the equation is a random number generated within predefined limits.
What the script ultimately does, is run 1000 times, and outputs 1000 different values.
From here, I copy the values in to excel and sort them there - I'd now like to do this within python.
What I wish to do is sort these 1000 values from largest to smallest, and then query and print values at certain stages within the sorted list.
I want to print the 100th value, 500th value and 900th value.
Any suggestions on how to achieve this will be greatly welcomed!
Happy coding!
Stuart
So I have a script that is essentially an equation.
Each variable in the equation is a random number generated within predefined limits.
What the script ultimately does, is run 1000 times, and outputs 1000 different values.
From here, I copy the values in to excel and sort them there - I'd now like to do this within python.
What I wish to do is sort these 1000 values from largest to smallest, and then query and print values at certain stages within the sorted list.
I want to print the 100th value, 500th value and 900th value.
Any suggestions on how to achieve this will be greatly welcomed!
Happy coding!
Stuart