I'm not really sure i understood, but you could try something like this.
if you only want integers returned you can use round, floor, or ceil.
round(random(1,10)) will give you integers between 1 and 10
floor(random(1,10)) will give you integers but rounded down. 2.5 will be 2
ceil(random(1,10)) will give you integers but rounded up 2.5 will be 3
Was that what you were looking for?
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.