Re: goto, label


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

Re: goto, label



--
Daniel Moraseski
from Orlando
Ricardo Navarro wrote in message <4cd4f229.357746c7@aol.com>...
> Chris Wrote:
>>I am making a program. If I was to choose a random integer from 1 to 10
and
>>then use the goto command to go to that label, how would I do it?
>
>
>
>
>you could try:
>
>:rand->X
>:(X*9)->X
>:round(X,0)->X
>:(X+1)->X

just say round(9rand,0)+1->X

>:If X=1
>:Then
>:Goto 1
>:End
>
>then you do the same for all the other numbers you get...I'm sure there are
>many different ways to approach this, but this is how I would do it.


References: