Andy Barber wrote:

Can I use z%=RND(-1,0,1)?

RND takes the parameter(s) RND([[min%] TO ] max%) to return a quasi random integer between min% and max%. Or you can use RND on its own, in which case it returns a fp number between 0 and 1

Will this give me a 33.3...% chance of giving a random number?

What are the remaining 66.66..% to be?

Is this what youre trying to achieve:

SELect ON z% = 1: PRINT 1: = 2: PRINT RND: = 3: PRINT 3

or something different?

Per
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to