C# Language Generate a random int


Example

This example generates random values between 0 and 2147483647.

Random rnd = new Random();
int randomNumber = rnd.Next();