-
-
Save audreyt/4121038 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env lsc -d | |
require! fs | |
dictwords = lines fs.read-file-sync \/usr/share/dict/words \utf8 | |
pick = -> it[ floor Math.random! * * ] | |
pwgen = -> [ pick dictwords for til 4 ].join '' | |
console.log pwgen! |
also pick = (.[floor Math.random! * *])
:p
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
第四列的 [rand * *] 和 Perl 6 簡直如出一轍。