// Arup Guha
// 9/2/2026
// Code to test out some Random Class Methods.

import java.util.*;

public class testrandom {

	public static void main(String[] args) {
		
		// Create three objects, one with the default constructor, the other two where we specify the seed.
		Random rObj1 = new Random();
		Random rObj2 = new Random(42);
		Random rObj3 = new Random(42);
		
		// Let's just see the first 10 integers (0 to 99) that each object generates.
		for (int i=0; i<10; i++) {
		
			// What do you notice? What does this reveal about how pseudorandom number generators work?
			int x = rObj1.nextInt(100);
			int y = rObj2.nextInt(100);
			int z = rObj3.nextInt(100);
			System.out.println(x+" "+y+" "+z);
		}
	}
}