/Users/lyon/j4p/src/bookExamples/ch05ControlStructs/Random.java

1    package bookExamples.ch05ControlStructs; 
2     
3    // How to generate random numbers 
4     
5    class Random { 
6        public static void main(String args[]) { 
7            for (int i = 0; i < 19; i++) 
8                System.out.println((int) (Math.random() * 10)); 
9        } 
10   }