There's a really nice method to generate all subsets of $N$ items of size $k$ that I have had to look up or derive enough times I decided to write a post on my ...