//************************************************************
// Generates Birthday Day/Month/Year *
// There's no check for the day/month relationship, *
// so the birthday can't be 29,39,31 *
// to prevent nonsense like 31.02 (February 31th) *
//************************************************************
function bnum (min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
var bday=bnum(1,29)
var bmonth=bnum(1,12)
var byear=bnum(1980, 1995)
alert(bday);
alert(bmonth);
alert(byear);