Skip to content

Instantly share code, notes, and snippets.

@roberocity
Created October 20, 2011 20:45
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 roberocity/1302333 to your computer and use it in GitHub Desktop.
Save roberocity/1302333 to your computer and use it in GitHub Desktop.
Ruby Random String
# base 36
# 12 character long random string
rand(36**12).to_s(36)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment