Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How do you randomize questions in a quiz in Turing?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Minyatto




PostPosted: Fri Jan 08, 2010 2:47 pm   Post subject: How do you randomize questions in a quiz in Turing?

Please... help T_T
Sponsor
Sponsor
Sponsor
sponsor
TheGuardian001




PostPosted: Fri Jan 08, 2010 2:58 pm   Post subject: Re: How do you randomize questions in a quiz in Turing?

Store your questions in an array, then generate random numbers to decide what question to ask.
registration




PostPosted: Fri Jan 08, 2010 4:15 pm   Post subject: Re: How do you randomize questions in a quiz in Turing?

TheGuardian001 @ Fri Jan 08, 2010 2:58 pm wrote:
Store your questions in an array, then generate random numbers to decide what question to ask.

and most likely you don't know how to do that because you asked this question, so i guess i'll help you here. say you have 3 questions:
var questions : array 1 .. 3 of string := init ("What is your name?", "What is your age?", "What is your hobby"?)
Then use the Rand.Int function.
Minyatto




PostPosted: Fri Jan 08, 2010 6:59 pm   Post subject: RE:How do you randomize questions in a quiz in Turing?

omg thank you sooo much! Very Happy
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: