Skip to content

Instantly share code, notes, and snippets.

@daninfpj
Last active May 9, 2018 12:56
Show Gist options
  • Save daninfpj/deb7c55579a8c7df3c222178382d67b5 to your computer and use it in GitHub Desktop.
Save daninfpj/deb7c55579a8c7df3c222178382d67b5 to your computer and use it in GitHub Desktop.
Generate random code
chars = ('a'..'z').to_a + (0..9).to_a
chars.shuffle.sample(4).join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment