20.02.2012, 08:31
the number "123456789" is 9 in lenght, so 10^9 in size as basis. you can do:
which gives any number ranging from 100000000 to 999999999. do this with 10^0:
1+random(9) equals 1,2,3,4,5,6,7,8,9, and
10+random(90) equals 10 to 99...
pawn Код:
100000000+random(900000000)
1+random(9) equals 1,2,3,4,5,6,7,8,9, and
10+random(90) equals 10 to 99...