ratcateme Posted June 28, 2008 Share Posted June 28, 2008 I am making a quiz with multi choice questions and i want the questions to change place so the answer will always be different at the moment i have a array with the questions and i want to randomize it. is there a function or easy way to do this?? Scott. Quote Link to comment Share on other sites More sharing options...
MasterACE14 Posted June 28, 2008 Share Posted June 28, 2008 <?php echo rand(1,100); // will display a number between 1 and 100 ?> use that. Regards ACE Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted June 28, 2008 Share Posted June 28, 2008 use the shuffle() function. Ken Quote Link to comment Share on other sites More sharing options...
ratcateme Posted June 28, 2008 Author Share Posted June 28, 2008 thanks ken Quote Link to comment Share on other sites More sharing options...
MasterACE14 Posted June 28, 2008 Share Posted June 28, 2008 I'm gonna have to remember that function Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.