/** random.js   written by Scott Honey
  tested OK on May 18, 1998, 11:48am
 *
 *   randomInt ( INT) 
 *    accepts an integer, and returns a number between that integer and zero.
 *
 *   function rand(NUMBER) 
 *   function rnd() 
 *     The Central Randomizer 1.3 (C) 1997 by Paul Houle (houle@msc.cornell.edu) 
 *     See:  http://www.msc.cornell.edu/~houle/javascript/randomizer.html
 *
 */ 
 

 
/* randomInt ( INT) accepts an integer, and returns a number between that integer and zero.
 */ 
function randomInt(returnCeiling) { 
  return rand(returnCeiling); 
}// end randomInt 
 
 
 
 
 
// The Central Randomizer 1.3 (C) 1997 by Paul Houle (houle@msc.cornell.edu) 
// See:  http://www.msc.cornell.edu/~houle/javascript/randomizer.html 

//Scott's comment, DON'T move these inside a procedure, or your results will be VERY non-random and repetitious. 
rnd.today=new Date(); 
rnd.seed=rnd.today.getTime(); 
 
function rnd() { 
        rnd.seed = (rnd.seed*9301+49297) % 233280; 
        return rnd.seed/(233280.0); 
}; 
 
function rand(number) { 
        return Math.ceil(rnd()*number); 
}; 
 
 




