The random number is:
window.onload = generateRandomNumber;
function generateRandomNumber(){
var n = 25; var number = Math.floor((Math.random() * 100) + 1); document.getElementById("randomNumber").innerHTML = number;
}
function refreshAt(hours, minutes, seconds) {
var now = new Date(); var then = new Date();
if(now.getHours() > hours || (now.getHours() == hours && now.getMinutes() > minutes) || now.getHours() == hours && now.getMinutes() == minutes && now.getSeconds() >= seconds) { then.setDate(now.getDate() + 1); } then.setHours(hours); then.setMinutes(minutes); then.setSeconds(seconds);
var timeout = (then.getTime() - now.getTime()); setTimeout(function() { window.location.reload(true); }, timeout);
}
refreshAt(13,42,0); // refresh the page at 1:36 PM.
