Moved random number generator to inside GameState.