Random integer

guzmere
21 May 2012, 19:26
Hello to all on this sunny evening, hope you can help me please
I am using a random script to generate integer numbers from 1 to 10 which is working so far, but my question is, does the random script ever return a 0 number and if so how can I get over that problem.
Thanking you all Terry :D :D :D :D

guzmere
21 May 2012, 19:38
Please ignore this post as I have just realised its between 1 and 10 so it cant be a zero. Der ive gone nuts :oops: :oops: :oops: :oops:

R2T1
22 May 2012, 02:07
Why not make a random number between 1 and 11 the subtract 1 from the result effectively giving you a random number between 0 and 10?