Added ability to pass random number generator to MoveFactorY