In C# programming we call this little trick "casting". Casting happens when you change the type of variable. If it has a decimal point, the variable is a "float", if it is a whole number then it is an "integer".
You want to cast the Float into an integer. So there is an expression under system called int() , Anything in the "()" will be cast into an integer.
Other ways to cast are :str() for String, and float() for float.
int(random 1.2342,100.234234) will always return a whole number.