IN case you missed the edit:
Otherwize you can use the choose instead.
choose(1,2,3,4,5,6,7,8,9) or how many parameters you want. it will pick a random one of those.
You forgot int()
I would choose random() over choose() for returning a value from a large range. Easier on the eye, easier to work with and probably better performance.