CS1 Standard Demo Page

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

Roll a standard die 5 times ...
5 3 2 4 6 
Roll a twenty sided die 5 times ...
11 20 17 10 11 
Roll a standard die 20 times ...
5 1 2 5 2 2 3 5 4 4 2 4 1 6 5 2 2 5 6 4 
Roll a standard die 30 times ...
4 4 6 1 5 4 2 3 3 6 2 4 4 5 2 1 1 2 2 5 1 4 2 1 2 5 6 2 6 6 
Roll a nine sided die 20 times ...
5 2 4 5 7 5 8 6 6 2 8 4 6 1 8 8 5 4 2 5 
Roll a nine sided die 30 times ...
3 8 5 5 4 4 6 3 7 6 8 3 3 9 5 1 1 9 6 5 7 1 1 3 2 5 3 8 6 5 
Ten times, roll a standard die for a 1.
1 
4 4 2 6 6 1 
6 1 
5 6 6 1 
2 1 
5 3 2 3 5 4 1 
3 1 
2 3 3 3 6 4 5 1 
1 
3 1 
Ten times, roll a twelve sided die for a 1.
8 9 3 7 11 9 3 8 3 8 9 10 11 4 11 2 10 11 10 1 
4 11 7 2 11 7 8 10 4 4 12 3 1 
9 4 7 11 12 12 8 10 10 1 
11 2 5 1 
9 7 3 7 3 7 3 5 6 9 9 12 12 9 11 4 2 3 4 4 11 9 9 5 2 7 10 8 6 12 3 4 12 6 8 6 9 10 5 2 12 1 
6 4 7 11 8 4 8 8 7 11 1 
8 3 1 
8 8 3 8 7 5 4 11 7 9 6 4 11 6 1 
11 4 8 2 6 3 4 12 9 7 6 9 7 11 3 6 11 5 5 1 
6 1