random variables...

I would like to know how to, on create actor of my enemy, change my variable to a number anywhere between 1 and 10.
Any help is appreciated
Any help is appreciated

your_variable = 1 + round(rand(9));
your_variable = 1 + rand(9);