Random number- Refresh this page to get another number. The range is currently 0 to 21 Note: Numbering starts at 0. I'm a computer geek. It's easier that way :-) Code: function pickRandom(range) { if (Math.random) return Math.round(Math.random() * (range)); else { var now=new Date(); return (now.getTime()/1000) % (range+1); } } |