3 ms·On counting and generating all k -permutations of a multiset (2015)1 points by YeGoblynQueenne 6y ago