import java.util.Random; public class ManyChoices { public static void main(String[] args) { Random random = new Random(); byte b = 0; while (random.nextBoolean()) { b++; } System.out.println(b); } }