// JavaScript, Generate a Random Number that is 9 numbers in length Math.floor(100000000 + Math.random() * 900000000); // http://stackoverflow.com/questions/3437133/javascript-generate-a-random-number-that-is-9-numbers-in-length