using System;
class DiceRollProgram
{
private static readonly Random rng = new Random();
// Returns a random number from 1 to 6
static int RollDice() {
return rng.Next(1, 7); // 1–6 inclusive
}
static void Main()
{
int dice1 = RollDice();
int dice2 = RollDice();
Console.WriteLine("Dice 1: " + dice1);
Console.WriteLine("Dice 2: " + dice2);
}
}
/*
run:
Dice 1: 1
Dice 2: 4
*/