Skip to content

Instantly share code, notes, and snippets.

@pcdavid
Created July 18, 2009 12:57
Show Gist options
  • Save pcdavid/149547 to your computer and use it in GitHub Desktop.
Save pcdavid/149547 to your computer and use it in GitHub Desktop.
rand-lines.rb
#!/usr/bin/env ruby
print ARGF.readlines.sort_by { rand }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment