using System;
public class Program
{
public static void Main()
var random = new Random();
int number = random.Next(0, 10);
// If you gonna use alot of conditions like this, a better solution will be to use: switch
if (number == 1)
// Do Something
}
else if (number == 2)
// Do Something else