// JavaScript random() Method // Return a random number between 1 and 10: Math.floor((Math.random() * 10) + 1); // http://www.w3schools.com/jsref/jsref_random.asp