1 import java.util.Random;
4 public static void main (String[] args) {
5 Random random = new Random(42); // (1)
7 int a = random.nextInt(2); // (2)
8 System.out.println("a=" + a);
10 //... lots of code here
12 int b = random.nextInt(3); // (3)
13 System.out.println(" b=" + b);
15 int c = a/(b+a -2); // (4)
16 System.out.println(" c=" + c);