Skip to content

Instantly share code, notes, and snippets.

@awd
Created November 1, 2012 16:06
Show Gist options
  • Save awd/3994607 to your computer and use it in GitHub Desktop.
Save awd/3994607 to your computer and use it in GitHub Desktop.
how to determine one name vs another..
selections = []
1000.times { selections << ["manage", "settings"].sample }
selections.select { |s| s == "manage" }.size > selections.select { |s| s == "settings" }.size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment