Skip to content

Instantly share code, notes, and snippets.

@demimismo
Created April 6, 2016 08:48
Show Gist options
  • Save demimismo/ae50985516da365c364551d9711f7bc7 to your computer and use it in GitHub Desktop.
Save demimismo/ae50985516da365c364551d9711f7bc7 to your computer and use it in GitHub Desktop.
💩 = ["David", "Raúl"]
💩[10.times.map{Random.new.rand(2)}.group_by{|e| e}.values.max_by(&:size).first]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment