// Create a randomizer Random rand = new Random(); // Make something equal to random number int in range of 'a' and 'b' int a = rand.Next(a,b);