c# generate 4 digit random number 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);