import java.util.Random;
import java.util.ArrayList;

/**
 * Write a description of class RandomStuff here.
 *
 * @author (your name)
 * @version (a version number or a date)
 */
public class RandomStuff
{
    private Random random;
    
    public RandomStuff() {
        random = new Random();
    }
    
    public RandomStuff(long seed) {
        random = new Random(seed);
    }
    
    public int throwDie(int sides) {
        return 1 + random.nextInt(sides);
    }
    
    public int throwTwentySidedDie() {
        return throwDie(20);
    }
    
    /**
     * Return a random number between 1 and 6
     */
    public int throwDie() {
        return throwDie(6);
    }
    
    /**
     * Random 2 6-sided die roll
     */
    public int throwDice() {
        return throwDie()+throwDie();
        
    }
    
    
    public static void testRolls() {
        RandomStuff rs = new RandomStuff();
        ArrayList<Integer> counts = new ArrayList<>();
        for(int i=0;i<=12;i++) {
            counts.add(0);
        }
        
        for(int i=0;i<1000000;i++) {
            int val = rs.throwDice();
            int count = counts.get(val);
            counts.set(val,count+1);
        }
        
        for(int i=0;i<=12;i++) {
            System.out.println(counts.get(i));
        }
        
    }
}