// Demonstrates the while statement. public class RandomNumber { public static void main(String[] args) { double r = 1; double epsilon = 0.1; while(r > epsilon) { r = Math.random(); System.out.println(r); } } }