public static void main(String[] args){
		Die d = new Die(2,6);
		boolean rolledTwo = false;
		boolean rolledTwelve = false;
		int total = 0;
		int runs = 1000000;
		for(int i = 0; i < runs; i++){
			int roll = d.roll();
			total += roll;
			if(roll == 2){
				rolledTwo = true;
			}
			if(roll == 12){
				rolledTwelve = true;
			}
			//System.out.println(roll);
			if(roll > 12 || roll < 2){
				throw new IllegalStateException("Invalid roll: "+roll);
			}
		}
		System.out.println((double)total/runs);
		System.out.println(rolledTwo);
		System.out.println(rolledTwelve);
	}