Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- names = ["Sander", "Sjaak", "Timo", "Ernst", "Floris", "Wayne", "Arno", "Henk", "Rob"]
- names.combination(2).to_a # => [["Sander", "Sjaak"], ["Sander", "Timo"], ["Sander", "Ernst"], ... ["Henk", "Rob"]]
- names.combination(2).cycle
- names.combination(2).cycle.first(3_000)
- names.combination(2).to_a.shuffle
Add Comment
Please, Sign In to add comment