Roller Demo

The following text was written to the standard output stream when the Roller program was executed from Netbeans.

Roller.java

run:
Roll a standard die 5 times ...
6 3 3 2 4 
Roll a twenty sided die 5 times ...
12 16 19 16 2 
Roll a standard die 20 times ...
1 2 6 2 1 6 1 6 4 1 1 1 4 5 5 2 1 3 2 4 
Roll a standard die 30 times ...
3 3 2 5 6 1 2 6 4 2 5 2 5 4 2 1 6 2 6 5 4 5 3 5 6 2 6 3 2 1 
Roll a nine sided die 20 times ...
7 2 9 9 7 1 9 3 8 5 5 1 8 6 8 4 5 4 3 5 
Roll a nine sided die 30 times ...
1 1 2 8 5 3 6 7 1 5 6 8 8 6 5 9 8 4 6 2 4 6 3 6 2 4 7 7 3 6 
Ten times, roll a standard die for a 1.
6 3 4 1 
5 2 2 6 4 2 5 1 
4 5 3 2 6 3 5 2 5 5 4 6 5 3 3 1 
4 3 3 6 2 5 6 1 
4 2 5 4 2 2 6 3 2 3 6 4 3 5 5 4 6 3 2 2 6 3 5 2 4 3 3 4 3 3 2 1 
6 5 1 
5 2 3 6 1 
6 4 1 
4 5 6 4 1 
2 4 2 4 3 4 4 5 5 3 3 2 4 6 1 
Ten times, roll a twelve sided die for a 1.
6 10 6 1 
4 3 1 
12 1 
3 10 2 6 10 2 5 4 12 6 10 6 3 10 5 9 12 9 3 7 5 10 10 10 5 7 1 
4 7 8 3 10 4 11 4 11 2 12 3 4 7 8 8 6 11 10 4 9 5 5 1 
10 11 8 12 11 1 
12 7 12 12 10 7 10 5 7 7 5 4 4 7 7 11 10 8 3 2 8 10 6 11 5 8 7 8 10 6 1 
5 4 1 
3 9 9 7 3 1 
1 
BUILD SUCCESSFUL (total time: 2 seconds)