[Python-ideas] random.choice on non-sequence

Terry Reedy tjreedy at udel.edu
Wed Apr 13 06:36:04 EDT 2016


On 4/13/2016 12:52 AM, Chris Barker - NOAA Federal wrote:

> BTW, isn't it impossible to randomly select from an infinite iterable anyway?

With equal probability, yes, impossible.
With skewed probabilities, no, possible.

-- 
Terry Jan Reedy



More information about the Python-ideas mailing list