This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes, mark.dickinson, rhettinger
Date 2013-07-09.13:11:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1373375485.67.0.76143166278.issue18414@psf.upfronthosting.co.za>
In-reply-to
Content
The random module has no method to obvious way to select k elements from a sequence without enforcing unique values in the result set. It's a rather useful feature for salts, randomly generated passwords and other applications. See #18405

The patch implements random.choices(seq, k) -> list
History
Date User Action Args
2013-07-09 13:11:25christian.heimessetrecipients: + christian.heimes, rhettinger, mark.dickinson
2013-07-09 13:11:25christian.heimessetmessageid: <1373375485.67.0.76143166278.issue18414@psf.upfronthosting.co.za>
2013-07-09 13:11:25christian.heimeslinkissue18414 messages
2013-07-09 13:11:25christian.heimescreate