Open GoogleCodeExporter opened 9 years ago
Original comment by d.pau...@gmail.com
on 31 Jan 2013 at 1:49
You can randomly select which results from the Generator to return. The
Generator is an Iterable, so you could wrap it and return a RandomIterator
which randomly returns results from the underlying Iterator. Get as fancy as
you want in the RandomIterator.
The weakness here is that you are still dependent upon the underlying sequence
of the Generator, which is not necessarily random between runs. The early
results are more probable than the later results.
Original comment by ryan.gus...@gmail.com
on 14 Mar 2014 at 4:39
Original issue reported on code.google.com by
PeterVermont
on 21 Dec 2012 at 4:00