Last active
October 3, 2018 15:04
-
-
Save kamijin-fanta/063eb1331d09d2ec574379f7a75d24b4 to your computer and use it in GitHub Desktop.
ダウンロードコード生成君
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var chars = 'abcdefghijkmnpqrstuvwxyz'.split('').map(s=>s.toUpperCase()); | |
var codes = Array(10).fill().map((_,i) => [(i+1).toString().padStart(4, '0'), Array(6).fill().map(_ => chars[Math.random()*chars.length|0]).join('')]); | |
// console.log(codes.map(c => `["${c[0]}","${c[1]}"],`).join('\n')); | |
// console.log(codes.map(c => `"${c[0]}","${c[1]}"`).join('\n')); | |
codes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment