Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am writing aa quiz application and will want too ensure that all the users that sign on to the application have the same series of question at the same time. Though application select the quiz at random.
Posted

1 solution

I assume this is a website, quiz websites seem to be a common homework task. So, you probably want to get your questions from a common source, which builds a random list and stores it for use by everyone. This could be your db, or the application object, or simply an algorithm that appears random, but always gives the same result ( for example built on a random number generator, seeded by the current time to the nearest hour, or todays date, or whatever, depending on how often you want them to change ).
 
Share this answer
 
Comments
Gasbie 18-Dec-12 6:16am    
I have an algorithm that generate random quiz but what i want is for every body
that sign up at a time say ten -o'clock have thesame question
Christian Graus 18-Dec-12 14:18pm    
I told you ways to do it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900