Implements math.floor() for randomization