change all random calls to a static Random object to ensure proper randomness