PS. I like the math.random() function I found in the Lua manual.

Andreas