I created a quote generator and when i click on a person's name, it prints out a random quote of theirs. Now the person has 20 quotes all stored in its own array. How do I get it to print out random quotes tat have not been used, once tehy all have been used, it can repeat.
Recommended Answers
Jump to PostA very simplistic way to do it is to have 2 arrays; one to hold the quotes, the second of the same size to indicate whether a quote has been used or not. So, you might initially fill the second array, which indicates whether a quote has been used, with …
All 2 Replies
dononelson
2
Junior Poster in Training
JamesCherrill
4,334
Most Valuable Poster
Moderator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.