Javascript random swamii | Write review | Report error | Discuss/get help on this script in our forums
There are 52 possible answers stored in an array. When a question is entered, a check is made to see if the question text box has something in it (if not, an alert is put up). A random number between 0 and 51 is calculated from the time the question was posed. This number is used to select the answer.