Re: TI-85 Programming Question


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

Re: TI-85 Programming Question



In article <559d30$tb0@nw101.infi.net>, excel98@norfolk.infi.net wrote:
>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.
>


int(rand*10)+1


int <-- keeps the number a whole number


10 <-- the highest number you want


+1 <-- keeps it from going to zero


References: