home *** CD-ROM | disk | FTP | other *** search
- function get_question()
- {
- qnum++;
- if(qnum >= qmax)
- {
- qnum = 0;
- }
- return eval("question" + qnum);
- }
- qmax = 1000;
- i = 0;
- while(i < qmax)
- {
- r = Math.floor(Math.random() * qmax);
- tmp = this["question" + i];
- this["question" + i] = this["question" + r];
- this["question" + r] = tmp;
- i++;
- }
- qnum = 0;
-