using System.Collections.Generic;
public class FairRandom {
public static int read(){
Console.WriteLine("Please input a integer from 1 to 6.");
int rd = int.Parse(Console.ReadLine());
while(rd >= 7 || rd <= 0){
Console.WriteLine("Please reinput a integer from 1 to 6.");
rd = int.Parse(Console.ReadLine());
private int lastNumber = read();
private Random rnd = new Random();
else if (lastNumber == 1) {
public static void Main()
FairRandom rnd = new FairRandom();
Console.WriteLine(rnd.Next());