Math.random vs. random()

Math.floor(4.7) = 4
Math.ceil(4.7) = 5

Ah, so it chooses whether to round up or round down to the nearest whole number. Thanks for straightening that up sbeener.

OK, Inigo, I didn’t even know there was a round() function. I was afraid they had deprecated Math.round…

pom :asian: