heya..
im creating a quiz program...but i dont konw how to randomize the questions
can any1 help me out???
Kevin Jose
0
Newbie Poster
Recommended Answers
Jump to PostIf you have 50 questions, the following code will print 10 numbers within the range of 0 to 50. The same number may get printed multiple times, but you can get rid of that by modifying the code to re-loop if an already printed number is obtained.
Jump to PostIf you have 50 questions, the following code will print 10 numbers within the range of 0 to 50. The same number may get printed multiple times, but you can get rid of that by modifying the code to re-loop if an already printed number is obtained.
srand( …
All 8 Replies
WolfPack
491
Posting Virtuoso
Team Colleague
manzoor
2
Junior Poster in Training
WolfPack
491
Posting Virtuoso
Team Colleague
invisal
381
Search and Destroy
WolfPack
commented:
Thanks for pointing that out.
+6
WolfPack
491
Posting Virtuoso
Team Colleague
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
ITnoob!
0
Newbie Poster
iustitia
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.