Generate rundom number C# code example
Example: c# generate random number
// Creates a random number between 1 and 10
int randomNumber = new Random().Next(1, 11);
// Creates a random number between 1 and 10
int randomNumber = new Random().Next(1, 11);