Re: goto, label


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

Re: goto, label



>> 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?
>
>On the TI-92 I'd do it like this:
>local i
>rand(10)->i
>goto #("mark"&string(i))
>OF COURSE you can replace the first part by:
>goto #("mark"&string(rand(10)))

Except for two things: Label names can only start with numbers on the 82/83,
on the 85,86, and 92 they must start with letters; and only the 92 has that
# command, if he's using an 8x calc he can't do that.  Nice try, though, I
wouldn't have thought of it.