randy3k / arrangements

Fast Generators and Iterators of Permutations, Combinations and Partitions
https://randy3k.github.io/arrangements
Other
51 stars 3 forks source link

Access random combination from iterator #4

Open VHazeleger opened 4 years ago

VHazeleger commented 4 years ago

Within the combinations iterator, is there any way to access combinations at random? (I.e. instead of getnext() do something equivalent to getrandom(), after which that combination is dropped from the iterator object.)

randy3k commented 4 years ago

Unfortunately, it doesn’t seem to be dorable.