I'm looking at generating a random number between 1 and 5 million. The process doesn't have to be quick (although it would be good if it was), but it must be as random as possible (I know nothing is random). I have a variety of data sources for the seed.
I'm not sure if the .NET Random class is going to be good enough for this.
This will be used to select a winning ticket.
Best Answer
The
System.Random
class probably is good enough:The only thing you have to watch out for is that you don't reuse the same seed too often: