var howMany = 15
var quote = new Array(howMany+1)
quote[0]="Try plugging it in"
quote[1]="Whose guitar is that?"
quote[2]="Has anyone heard from him?"
quote[3]="I'll get another bucket"
quote[4]="I'm never going home"
quote[5]="The shrew died in my wastebasket"
quote[6]="Ladies and gentlemen, the house is open"
quote[7]="Check the archives"
quote[8]="Animals, firearms, and explosives"
quote[9]="Never operate a stapler"
quote[10]="Surely there are legal concerns"
quote[11]="Just rewrite the subject line"
quote[12]="Consider the em-dash"
quote[13]="Have another sticky bun"
quote[14]="Check the archive"
quote[15]="I'm sure you're right"
function rndnumber(){
var randscript = -1
while (randscript < 0 || randscript > howMany || isNaN(randscript)){
randscript = parseInt(Math.random()*(howMany+1))
}
return randscript
}
quo = rndnumber()
quox = quote[quo]
document.write(quox)