Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0, "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
- function main() {
- var key = ((nums[Math.floor(Math.random() * nums.length)].toString()) + (Math.floor((Math.random() * 10)).toString()) + (Math.floor((Math.random() * 10)).toString()));
- var key2 = ((Math.floor((Math.random() * 10)).toString()) + (Math.floor((Math.random() * 10)).toString()) + (Math.floor((Math.random() * 10)).toString()));
- var key3 = ((Math.floor((Math.random() * 10)).toString()) + (Math.floor((Math.random() * 10)).toString()));
- var code = (key+key2+key3);
- document.getElementById("PromoInput").value = code;
- document.getElementById("cartPromoCodeBtn").click();
- }
- setInterval(function() {
- main();
- }, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement