(I did a search, and didn't see a duplicate. I apologize in advance if there is one.)
I have the need to repeatedly call a method that performs some simulations. This method takes in a couple of static variables as arguments, and returns a calculated result derived from a random number (double
) (0.01 - 100.00).
However, given that the Random
class constructor bases its seed off of the current system time, if I call the method 25 times in a row, I could get 75.01 back as the result all 25 times.
Is there a relatively simple way to get an almost-guaranteed different number back on each method call?
I suspect this is somewhat easy to accomplish, I'm just at a loss.
Thanks!