Quote Originally Posted by Lil Ms Squirrel
From what I can remember from my research into this subject, you can get away with using the same Random() object. When you call the Random.Next(int, int) method, the object automatically generates it's seed based on the system date and time to ensure that a random number is always generated.

The old Rnd() function in VB6 required you to specify a seed which I believe could heighten the chances of duplication. I guess it depends on just how unique you want the numbers to be. The larger your range, the greater the chance of uniqueness.

The other cool thing about the .NET class is that it can return random decimals too.

I'll try and find the article that I read this in (although it might have been a Mike Gunderloy book)

And if anyone wants to correct me, please do because I'm interested in this class too

LMS
VB6 had the Randomize statement to avoid duplication.

Anyway, using a single global Random object is MUCH faster and more efficient than using multiple objects as and when required.

Once again this is mentioned in MSDN!!