Click to See Complete Forum and Search --> : Non Repeating Question and Answers


SchoolMom
02-20-2003, 05:57 PM
I have created a simple math flashcard page for my son. It shows a math problem and when you click the problem it links to another spot on the web page that shows the answer.

I would like to change the web page so that the math problems are presented in a non repeating random order.

I know how to do a little java script and a little HTML.

I have learned that I could set it to provide a random text everytime I refresh the page but that is not what I want to do.

Anyone know how to do this?

Thanks,
School Mom

AdamBrill
02-20-2003, 07:47 PM
Try the attached code and see if that would work. Let me know if you have any problems...

SchoolMom
02-21-2003, 01:27 PM
Wow! I will have to learn more to understand why it works but it is exactly what I wanted!

Thank you so much!:D :D :D :D

AdamBrill
02-21-2003, 01:36 PM
Just so you know, the max variable is the highest that the numbers can be. It picks a number between 0 and the max number. And, the maxnums is how many numbers that are in the problem. That way, you can make it easier or harder, depending on the skill level.