You could also use int(random(x)) indeed.
The trick here is that it would pick a random float number between 0 and X and return an integer (so a rounded value of the returned float number).
In the end it all depends to what you're doing.
Ceil will round up, floor will round down, int will automaticly ceil or floor.This post by Ashley
gives more info about the use of int().Kyatric2012-01-06 12:42:28