Re: goto, label


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

Re: goto, label



 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
: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.


Follow-Ups: