New submission from Christian Heimes: 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 ---------- components: Library (Lib) files: random_choices.patch keywords: patch messages: 192747 nosy: christian.heimes, mark.dickinson, rhettinger priority: normal severity: normal stage: patch review status: open title: random.choices(seq, k) type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file30877/random_choices.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18414> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com