This page randomly selects quotes
from a database and displays the result along with its author.
A record is kept of the previous and second previous result, so that if
the next random selection matches either, a new one is generated. This helps to prevent a quote appearing twice
in three selections.
This Quote: 15 The Last Quote: The Last But One Quote:
This example uses thirty quotes, so they will repeat quite quickly. Random
numbers generated by computers are not (shock horror!) actually random - they are generated by an algorithm and
can be repeated at will.
This script is run on the server, as opposed to the users computer. This
type of interactive technology is inherently more reliable and easier to debug,than both Flash and Client-side
scripting (JavaScript etc) since there is only one computer to diagnose. Compare this to Flash applets used in the
Observer and Alphabet and Node Machine and the JavaScript applet in Temperature Converter. |