Turing help with creating a quiz! random order of questions every time?
Author |
Message |
CookieMonster
|
Posted: 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! |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Raknarg
![](http://compsci.ca/v3/uploads/user_avatars/3745510004d8be6689b92f.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
|
|