// Polyhedral dice program
using System;
class Program
{
// -------------------------
// Globals
// -------------------------
static Random random_generator = new Random();
// -------------------------
// Subprograms
//--------------------------
static int roll_dice()
{
int result = random_generator.Next(1, 7);
return result;
}
// -------------------------
// Main program
// -------------------------
static void Main()
{
int number = roll_dice();
Console.WriteLine($"You rolled a {number}");
}
}