Hey guys I was trying to generate a random number and looked at methods other people use and I always see Math.floor being used and wonder if their is any specific reason.
A technique multiplying by 10 and adding 1 to makeup for the rounded down:
This seems more practical:
ceil: Returns the value of a number rounded upwards to the nearest integer
floor: Returns the value of a number rounded downwards to the nearest integer
Does this matter a whole lot? Im wondering if there is a disadvantage to ceil, as I haven't found a bad roundup yet.. Sorry Im not that great with math