[Python-ideas] Shuffled

Nick Coghlan ncoghlan at gmail.com
Wed Sep 7 23:28:32 EDT 2016


On 8 September 2016 at 13:23, Nick Coghlan <ncoghlan at gmail.com> wrote:

> Beyond that practical benefit, if you want
> random-sampling-with-replacement, then "map(random.choice, container)"

Oops, that was supposed to be "map(random.choice, itertools.repeat(container))".

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-ideas mailing list