TIB: Question (TI-86)


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

TIB: Question (TI-86)




as possibly a person or two may have noticed, i put a dice roller program up 
on ticalc.org today. already ive realized something i need to update about 
it, but im not sure how.

the program, with user imput for variables for sides and number of dice, 
"rolls" the dice (not that hard a program, just the random number generator 
for people too lazy to actually type out all the stuff [like me]). It works 
fine as long as all the numbers are on one line, but at the end of the line 
it has the last number folled by ... (obviously because i used "Disp C" to 
display the rolled numbers.). is there any way to get it to just continue it 
onto the next lines (like the outpt command does, but i cant figure how to do 
that for a variable).
below is the program. any help would be appreciated. thanks
(PS. for anyone who forgot, the "ü" is the Arial font representation of the 
=> storing arrow thing)


:Disp "A=Number of dice"
:Disp "B=Number of sides"
:Disp "per dice"
:Disp ""
:getKyüKey
:Prompt A
:Prompt B
:randInt(1,B,A)üC
:Disp C
:sum CüD
:Disp D
:Stop


Follow-Ups: