updated randomizer.java