number = Rnd() * 10
How do you get a random number?Like in visual basic you would do this.Code: [Select]number = Rnd() * 10And then the variable number would equal a random number between 1 and 10.
getRandom(1,10);
%number = getRandom(1, 10);because technically he asked how to define the variable number randomlybut yeah i think everyone in this thread is smart enough to figure that one out