Skip to content

Instantly share code, notes, and snippets.

@stepahn
Created August 3, 2009 18:54
Show Gist options
  • Save stepahn/160759 to your computer and use it in GitHub Desktop.
Save stepahn/160759 to your computer and use it in GitHub Desktop.
class Array
def shuffle
self.sort_by { rand }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment