Created
April 4, 2016 17:01
-
-
Save ivolivares/a1a617bfda02876cf1363c13e2368529 to your computer and use it in GitHub Desktop.
Testing 2000 string generated by random characters.
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
getRand = -> Math.random().toString(36).substring(7) | |
equals = [] | |
for i in [0..2000] | |
rand = getRand() | |
console.log "Evaluating...#{rand}" | |
equals.push rand if rand in equals | |
console.log if equals.length then equals else 'Nothing equal' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment