If you want to ask your questions in random order, without repeating, then fill an array with the numbers 1 through 30 (or whatever your count is), then for each question, pick the index as a random number between 0 and 1 less than the number of questions left, ask that question, and remove that index from that array.
No comments:
Post a Comment