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

Username:   Password: 
 RegisterRegister   
 Turing help with creating a quiz! random order of questions every time?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
CookieMonster




PostPosted: Sat Oct 19, 2013 5:59 pm   Post subject: Turing help with creating a quiz! random order of questions every time?

Hi for a school assignment, I have to create a multiple choice quiz. Every time the user repeat the quiz, how do I have the questions in random order each time they do it? thanks any help will be appreciated!
Sponsor
Sponsor
Sponsor
sponsor
Raknarg




PostPosted: Sat Oct 19, 2013 6:10 pm   Post subject: RE:Turing help with creating a quiz! random order of questions every time?

x := Rand.Int (1, 3)

if x = 1 then

elsif x = 2 then

elsif x = 3 then

end if



Thats the easiest way, unless you want to get into arrays.
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  [ 2 Posts ]
Jump to:   


Style:  
Search: