On Tue, Aug 4, 2020 at 10:54 AM Steven D'Aprano <st...@pearwood.info> wrote:
> Yes, I remember the last time I played poker with some friends, and the
> dealer handed me the deck of cards and asked me to take a sample of 52
> cards *wink*

Most dealers want you to shuffle the deck *in place*. Although I'd be
highly amused to watch a group of computer scientists playing poker,
and starting out with a Fisher-Yates...

For the case of "create a new list that is a random permutation of
these items", I don't personally see a problem with (1) create a new
list, and then (2) shuffle that new list. If the naming bothers you,
don't call it shuffled_numbers at all - call it something based on its
purpose later on!

ChrisA
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/FAQFXWDZUV6MSAGH5XHYGT2JLOIE6EIP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to