[Python-ideas] Shuffled

אלעזר elazarg at gmail.com
Tue Sep 6 14:25:45 EDT 2016


Naive shuffled() can be emulated using a single expression:

   sorted(lst, key=lambda _: random())

So there's even less incentive for standardization.

~Elazar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160906/95072607/attachment.html>


More information about the Python-ideas mailing list