using System.Collections.Generic;
public virtual int Next() {
public class FairRandom : Dice {
public FairRandom(int seed) : base(seed)
public override int Next() {
else if (lastNumber == 1) {
public static void Main()
Console.WriteLine("Please Enter your start number:");
Console.WriteLine(e.Message);
Console.WriteLine("You can run this again to play one more time");
Console.WriteLine("Please enter the right number smaller than 7.");
Console.WriteLine("You can run this again to play one more time");
FairRandom rnd = new FairRandom(i);
Console.WriteLine(rnd.Next());
Console.WriteLine("You can run this again to play ome more time");