Skip to content

Instantly share code, notes, and snippets.

@wilson
Created October 5, 2009 21:48
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 wilson/202512 to your computer and use it in GitHub Desktop.
Save wilson/202512 to your computer and use it in GitHub Desktop.
data = {}
choices = ('a'..'z').to_a
100_000.times do |i|
data[i] = choices[rand(26)]
end
data.sort_by {|k,v| k}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment