correct math.random to use only number type