/* * Draw random numbers in the range 0..99 until one random number exceed 90 * * Created August 2023 * @author gtowell */ import java.util.Random; public class Rando { public static void main(String[] args) { Random r = new Random(); int rv = r.nextInt(100); // initialize with a random -- is this really a good idea? while (rv < 90) { System.out.println(rv); rv = r.nextInt(100); } } }