<HTML> <HEAD> <TITLE>Randomly Generated Idea</TITLE> <SCRIPT LANGUAGE = "JavaScript"> // The Array Function function makeArray(len) { for (var i = 0; i < len; i++) this[i] = null; this.length = len; } // This is where the array of text/images/sounds is created. ideas = new makeArray(4); ideas[0] = "Type \"about:cache\" into your browser to find everything that is stored in your cache."; ideas[1] = "Type \"about:mozilla\" to get an odd message from the Netscape team." ideas[2] = "Hold down shift when pressing reload to clear a page\'s items from cache." ideas[3] = "Type \"view-source:\" preceding a document\'s URL to automatically view its source." // The random number generator. function rand(n) { seed = (0x015a4e35 * seed) % 0x7fffffff; return (seed >> 16) % n; } var now = new Date() var seed = now.getTime() % 0xffffffff </SCRIPT> </HEAD> <BODY> Today's Randomly Generated Idea is: <P> <SCRIPT LANGUAGE = "JavaScript"> // Where you place this is where the random object will be displayed. document.write(ideas[rand(ideas.length)]) </SCRIPT> </BODY> </html>