import java.util.Random;
public class DieExample {
    public static void main(String[] args) {
        Die myDie = new Die(new Random(), 12);
        
        int[] numbers = new int[myDie.getSideCount()];
        for (int i = 0; i < 500; i++) {
            myDie.roll();
            System.out.println("Rolled " + myDie.getNumber() + "...");
            numbers[myDie.getNumber() - 1]++;
        }
        
        
        System.out.println("\nResults");
        for (int i = 0; i < numbers.length; i++) {
            System.out.println("Number " + (i + 1) + ": " + numbers[i] + " times");
        }
    }
}