On Tue, Aug 4, 2020 at 10:54 AM Steven D'Aprano <[email protected]> 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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/FAQFXWDZUV6MSAGH5XHYGT2JLOIE6EIP/ Code of Conduct: http://python.org/psf/codeofconduct/
