InterNetWorKed Just add the number to the floored number like
Code:
Math.floor(Math.random()*10)+5
Windowed
Flooring means rounding up.. like when u get a random number, it will be between 0 and1, and when you multiply it with some number it can result in a decimal number, but what is required is an integer.So the Math.floor() is used. remember: Math.floor() rounds just removes the decimals.. that is if number is 2.1 it will be rounded to 2, also 2.9 will be rounded to 2 as it is being Floored.
In case of anything else please feel free to ask.
Bookmarks