Sunday, July 15, 2012

generate a random number with C#

The second line below assigns a number between 0 and 219134.

Random random = new Random();
int randomNumber = random.Next(219135);

No comments:

Post a Comment