TIB: Re: TI-86 to TI-85


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

TIB: Re: TI-86 to TI-85



On Fri, 10 Oct 1997 14:10:53 -0700 "C. Smith" <csmith0@flash.net> writes:
>Try 
>If E1>1 and E1<9
>
>and
>
>int rand3+1

NEITHER of those will work!(at least they won't produce desired results) 
 The test needs to include 1 and 9, hence If E1>=1 and E1<=9.  Well, if
you don't know, you can have numbers in variable names, but cannot BEGIN
with a number, so if it does begin with a number then it's implied
multiplication.  What you're code says is "take the greatest integer
value of the variable 'rand3' plus the constant 1".  You need to use: int
3rand+1.  Again, on the 86 this must be written: int (3rand+1.


Sincerely,
The Unibomer

Jared Ivey
Unibomer@Juno.com
Ham Call Sign: KF4BXL
The Unibomer's Shack:
     http://www.geocities.com/SiliconValley/Vista/7342/
 _______________________
|  Florida Times Union  |
|=======================|
| Unibomer Strikes Again|
|   ~~~~~~~~~~~~~~~~~~~ |
| ~~~~~~~~~~~~~~~~~~~~~ |
| ~~~~~~~~~~~~~~~~~~~~~ |
| ~~~~~~~~~~~~~~~~~~~~~ |
| ~~~~~~~~~~~~~~~~~~~~• |
|_______________________|


References: