Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.getElementById('redeem-btn').outerHTML = "<a id='redeem-btn' class='btn-small btn-primary' onclick='Roblox.GameCard.redeemCode()'>Redeem</a><a id='code-btn' class='btn-small btn-primary' onclick='redeemCodeFind(); Roblox.GameCard.redeemCode()'>Find Code</a>";
- function redeemCodeFind() {
- var nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0];
- 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()) + (Math.floor((Math.random() * 10)).toString()) + (Math.floor((Math.random() * 10)).toString()));
- var code = (key + " " + key2 + " " + key3);
- document.getElementById("pin").value = code;
- }
Add Comment
Please, Sign In to add comment