New submission from Tilman Krummeck <tilman.krumm...@googlemail.com>:

random.sample can be used to choose k items from a given sequence. Currently, k 
is a mandatory parameter. 

I suggest to make k optional and instead, if omitted, pick a random value from 
the range of 0 and the length of the sequence.

Of course, doing this must also consider any possible value of 'count'

----------
components: Extension Modules
messages: 409283
nosy: TilmanKrummeck
priority: normal
severity: normal
status: open
title: Omit k in random.sample()
type: enhancement

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46190>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to