Re: TIB: Infinant requesting on ti-89 basic


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

Re: TIB: Infinant requesting on ti-89 basic




I don't think he was requesting a way to randomize the matrix, but rather a
way to have the questions asked randomly, in which case you'd simply pull a
random question and it's counterpart answer from the matrix to ask.

~Dave <the_regul8r@bigfoot.com>


>>  What are the commands that i would use??
>>  I need to know for a program that will be a study guide. This program
>>  (for the 89) will ask for a question and the answer to the questions
>>  and then it will randomly ask you the questions you answered ( to help
>>  you study)
>
>Prompt the user to enter the number of items, store this number to x, and
then
>create a matrix NewMat(2,x)->variable and then make a For loop from i=one
to
>i=x, and inside the loop, (assuming you'll be using a matrix or data
variable)
>just read in the question and store it to variable[1,i] and then the answer
>and store this to variable[2,x].  To randomize, use another for loop from
i=1
>to i=x, store a random integer between 1 and x to y, and then swap
>variable[1,i] with variable[1,y] and swap variable[2,i] with variable[2,y].
>That's not the fastest way to randomize, but it's the easiest to understand
>and has the shortest code.  If you want a faster, high tech algorithm just
ask
>and I'll think something up for you.
>PJC II