/** * Example usage. * @param args command line args */ public static void main(String []args){ //example //seed in main method of program to synchronize classes (comment out to break synchronization) RandomFactory.seedMapped(0, 943); //in each class that uses a random construct it like this: Random rand = RandomFactory.getMapped(0); //and use reference as normal System.out.println("" + rand.nextInt()); }