Skip to content

Instantly share code, notes, and snippets.

@ivolivares
Created April 4, 2016 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivolivares/a1a617bfda02876cf1363c13e2368529 to your computer and use it in GitHub Desktop.
Save ivolivares/a1a617bfda02876cf1363c13e2368529 to your computer and use it in GitHub Desktop.
Testing 2000 string generated by random 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