!DOCTYPE html> CS1

CS1 Standard Demo Page

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

Roll standard die five times...
2 3 4 1 4  
 
Roll twenty sided die five times...
1 18 6 6 7  
 
Roll standard die 20 times...
4 6 2 2 4 3 2 5 5 3 2 2 3 1 4 5 2 1 1 6  
 
Roll standard die 30 times...
5 3 3 3 1 2 6 5 1 3 3 5 3 6 5 3 3 5 5 5 2 6 4 6 2 3 6 4 6 4  
 
Roll nine sided die 20 times...
8 8 7 2 1 3 8 6 4 3 2 2 1 2 1 6 1 8 3 1  
 
Roll nine sided die 30 times...
4 6 6 8 4 2 4 9 2 1 2 8 1 1 9 2 7 2 9 2 1 8 1 9 7 7 1 5 2 5  
 
Ten Times, create a standard die and roll it until you get a 1.
6 1  
1  
5 2 1  
2 4 5 2 1  
4 4 6 3 3 2 1  
4 1  
6 6 1  
1  
3 2 5 2 3 1  
1  
 
Ten Times, create a twelve sided die and roll it until you get a 1.
4 7 12 12 8 2 11 8 7 11 4 2 2 6 2 2 9 7 6 11 8 12 6 8 12 2 4 8 12 4 9 12 5 11 2 10 12 3 12 8 1  
1  
2 7 6 7 12 6 7 3 3 6 3 7 11 6 2 8 8 8 1  
1  
9 8 11 4 7 5 3 7 4 9 8 1  
10 1  
8 12 8 7 3 2 4 11 8 4 4 1  
1  
5 10 3 11 11 5 5 3 12 1  
1