// random numbers: generating pseudo-random numbers in java public class random_numbers { public static void main(String[] args) { double random_num; int result; // Note: Math.random() returns a double in the range of 0 to 1.0 random_num = Math.random(); System.out.println("Result: " + random_num); System.exit (0); } }