|
|
|
Home : JavaScript : Random Items
|
|
LINKS: |
 |
|
|
- Swami
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.
(Added: Hits: 21 Rating: Votes: 0)
Rate It
Review It
Details
|
|
|