replaced engine.math.randomInt() with engine.math.randomNumber()