Keep in mind that random gives a range not including the last number selected so if you want a random number between 1 and 10 it would be random(1,11)
If you need that to be an integer whole number use int(random(1,11)) and if you just want the decimals left off use floor(random(1,11)).