Skip to content

Instantly share code, notes, and snippets.

@sunchen115
Last active December 23, 2016 07:06
Show Gist options
  • Save sunchen115/a7cef4947157e9c11e6d to your computer and use it in GitHub Desktop.
Save sunchen115/a7cef4947157e9c11e6d to your computer and use it in GitHub Desktop.
ss=%w{JP OYJC欧阳继超 FJ冯佳 SC孙晨}.sort
pairs=[]
ss.each do |e1|
ss.each do |e2|
if e1 != e2
pairs<<[e1,e2].sort unless pairs.include?([e1,e2].sort)
end
end
end
#pairs[((Time.now.strftime("%U").to_i)%pairs.length)]
"hehe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment