combination_gen

Combinations generator (combinatorics) Generates all possible combinations of (n/k) k elements from n elements with no repetitions. Iterate or display combinations.

geco

Geco, a (Constant Amortized Time) recursive generator* for k-combinations, chosen from a given set S of n elements, with and without replacement.