Generate phone cell number

Script uses math functions like Math.floor and Math.random, which help to generate random phone cell number.
	function rand_number () {
		var math_result = Math.floor(Math.random() * 1000000000);
		if (math_result.toString().length < 9) {
			math_result = math_result + "0";
			}
		document.getElementById("result").value = math_result;
		}

Responses

0 Replies