CSharp - Write program to Roll Two Dice

Requirements

Use more than one random number series.

You will write a program that throws a pair of dice three times.

Hint

Use a single random number generator.

Demo

using System;

class Program/*from  w  w  w. java2 s.  com*/
{
    static void Main(string[] args)
    {
        // Creating random number generator object 
        Random randomNumbers = new Random();

        // Repeatedly throwing two dice 
        int correctNumber11 = randomNumbers.Next(1, 6 + 1);
        int correctNumber12 = randomNumbers.Next(1, 6 + 1);

        int correctNumber21 = randomNumbers.Next(1, 6 + 1);
        int correctNumber22 = randomNumbers.Next(1, 6 + 1);

        int correctNumber31 = randomNumbers.Next(1, 6 + 1);
        int correctNumber32 = randomNumbers.Next(1, 6 + 1);

        Console.WriteLine("Thrown couples: " +
            correctNumber11 + "-" + correctNumber12 + ", " +
            correctNumber21 + "-" + correctNumber22 + ", " +
            correctNumber31 + "-" + correctNumber32);

    }
}

Result