[issue18888] Add stdlib support for random sampling with replacement

2013-08-31 Thread Madison May
Madison May added the comment: Whoops, my apologies. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue18888] Add stdlib support for random sampling with replacement

2013-08-31 Thread Mark Dickinson
Mark Dickinson added the comment: This was already considered and rejected in issue18414. -- nosy: +mark.dickinson, rhettinger resolution: -> duplicate status: open -> closed superseder: -> random.choices(seq, k) ___ Python tracker

[issue18888] Add stdlib support for random sampling with replacement

2013-08-30 Thread Madison May
New submission from Madison May: Although the random module supports random sampling without replacement, there is no support for random sampling with replacement. Efficient random sampling with replacement is trivial using random.choice() (see below), but supporting it as an optional 'replac