Solving random number generation bug in Shuffle Class