Hi!
I'm making a script that quizzes people online about various latin grammatical structures (sounds fun, huh?). Anyway, I have a bunch of little .html files that have the question in them and they all have numerical filenames, like 1.htm, 2.htm, etc. up on to about 60.htm. In the page with a question on it, I just do "include(14.htm)" or whatever question I want. I want the user to receive the questions in a random order and thus far have simply been generating a random number using the rand() function and then storing it to a variable and displaying "$random.htm". This works fine except that it can generate the same random number over again and thus display the same question. To solve this I generated an array with random numbers between 1 and 60 and then shuffle() the array. I'm trying to then set a cookie with that array and then recall it on a later page so I can say "include($randomarray[1].htm)", but it hasn't been working. Can someone maybe show me some code that would accomplish this so that I can figure out what I did wrong? Thanks a lot.