Re: TIB: Random Number Generation Different From The One Before


[Prev][Next][Index][Thread]

Re: TIB: Random Number Generation Different From The One Before





Jeanne9005@aol.com wrote;
On the 86, how do I get a random integer between 1 and 24, and then if the
number has already been used, it can't be used again?  Is there any shorter
way than testing all the numbers prior to it for the chosen number?  Please
don't waste mine and your time by telling me you don't have an 86.  Thanks in
advance.

Glen

try this:
:Lbl A
:RandInt(1,24)->A
:RandInt(1,24)->B
:If A=B
:Goto A
:Disp A
:Disp B

I'm not sure if this is what you are looking for or not.  I hope it helps