I was wondering how do I make a webpage where it will randomly display multiple choice questions without using a server on one side. I made these multiple choice questions using javascript that people can select an answer, then click "check answer" and it will tell you if you are right or wrong and display the answer.

I searched using google to try and find a random generator using javascript, but I haven't found one that wouldn't repeat itself. Is there a better way to do this then what I'm doing now?

Also, I wrote a really primitive c++ program that takes the input file of typed multiple questions and then outputs into a really simple html file.

Please let me know if there's a better way to do this ^_^ thanks.