package edu.bloomu.ch3a;

import java.util.concurrent.ThreadLocalRandom;

/**
 * Rolls a pair of virtual dice.
 *
 * @author Drue Coles
 */
public class DiceRoller {

    public static void main(String[] args) {
        
        ThreadLocalRandom rand = ThreadLocalRandom.current();
        
        // roll dice and compute the sum
        int die1 = rand.nextInt(1, 7);
        int die2 = rand.nextInt(1, 7);
        int sum = die1 + die2;

        System.out.println("First roll: " + die1);
        System.out.println("Second roll: " + die2);
        System.out.println("Combined roll: " + sum);
    }
}