home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1997 September / Personal_Computer_World_Sep_97.iso / Democd3 / oasquiz.dxr / 00012.ls < prev    next >
Encoding:
Text File  |  1997-06-04  |  519 b   |  19 lines

  1. on choose_q
  2.   global match, check_counter, Rand_Quest, original, val, pass, counter, checklist, diff
  3.   repeat while match = 1
  4.     set match to 0
  5.     set check_counter to 1
  6.     set Rand_Quest to random(24)
  7.     set original to Rand_Quest
  8.     repeat while check_counter <= counter
  9.       set val to getAt(checklist, check_counter)
  10.       if Rand_Quest = val then
  11.         set match to 1
  12.       end if
  13.       set check_counter to check_counter + 1
  14.     end repeat
  15.   end repeat
  16.   append(checklist, Rand_Quest)
  17.   set pass to 0
  18. end
  19.