Re: TI-85 Programming Question


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

Re: TI-85 Programming Question



Yep, you got it...


At 08:06 10/31/96 -0800, Mark Morse wrote:
>I haven't used rand in a long time, so I hope this is right (if it's not,
>I'm sure
>somebody will correct me -- so stay tuned!):
>
>int( 10 * rand + 1 )
>
>        ~ Mark
>
>----------
>> From: excel98@NORFOLK.INFI.NET
>> To: CALC-TI@LISTS.PPP.TI.COM
>> Subject: TI-85 Programming Question
>> Date: Wednesday, October 30, 1996 9:22 PM
>>
>> Can anyone explain to me how to use the rand function. I simply want it
>to
>> randomly output a number from one to ten. Or randomly output a variable.
>> Can someone help me out with this.
>
>
+--------------------------------------------------------+
| Peter Kolbus                           +1.810.474.0872 |
| ae607@detroit.freenet.org      #include <disclaimer.h> |
+--------------------------------------------------------+
| Due to financial difficulties, the light at the end of |
|   the tunnel has been permanently disconnected.        |
|                                                        |
| The packet goes out the card, into the copper, out     |
|   the router, onto the fiber, across the world, thru   |
|   the copper............       NOTHING BUT NET.        |
|                                                        |
| ***Written using 100% recycled electrons***            |
|         *** (80% post-consumer) ***                    |
+--------------------------------------------------------+


References: