pin code Generator Tool
Pin Code Generator Tool
Enter the number of pin codes you want to generate:
function generatePins() { var num_pins = parseInt(document.getElementById("num_pins").value); if (isNaN(num_pins) || num_pins < 1) { alert("Please enter a valid number of pin codes to generate."); return; } var pin_codes = ""; for (var i = 0; i < num_pins; i++) { var pin = Math.floor(Math.random() * 9000) + 1000; pin_codes += pin + ""; } document.getElementById("pin_codes").innerHTML = pin_codes; }
Post a Comment