I wonder how I could use the Random class to generate a Random number in the number Range: 1 - 50 ?

Hi,

Here you are:

Random rand = new Random(); var value = rand.Next(1, 50);

Found the solution:

Random random = new Random();

int RandomNumber = random.Next(1, 50)