Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #54911
| From | Dave Angel <davea@davea.name> |
|---|---|
| Subject | Re: card dealer |
| Date | 2013-09-27 21:00 +0000 |
| References | <0617088e-5aa3-4c5d-b660-22040ee858a1@googlegroups.com> <l23q0r$u27$1@ger.gmane.org> <mailman.380.1380283737.18130.python-list@python.org> <l24am7$j2k$2@dont-email.me> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.392.1380315681.18130.python-list@python.org> (permalink) |
On 27/9/2013 12:10, Denis McMahon wrote: > On Fri, 27 Sep 2013 12:08:33 +0000, Dave Angel wrote: > >> i recall >> writing a shuffle function in C decades ago, which took an array of (52) >> unique items and put them in random order. > > Whenever I tried to write shuffles I came up against a fairly fundamental > limit: > > 52! > prng states > > Granted prngs seem to be better on the importing entropy from elsewhere > front these days. > in 1978, I implemented a random number generator that the OS sequenced through between scheduling processes, so that any individual process would be relatively safe from that phenomenon. Of course I was limited to the precision of the math package - 10**13 -- DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
card dealer markotaht@gmail.com - 2013-09-27 03:24 -0700
Re: card dealer Dave Angel <davea@davea.name> - 2013-09-27 11:26 +0000
Re: card dealer MRAB <python@mrabarnett.plus.com> - 2013-09-27 12:27 +0100
Re: card dealer Alister <alister.ware@ntlworld.com> - 2013-09-27 11:41 +0000
Re: card dealer Dave Angel <davea@davea.name> - 2013-09-27 12:08 +0000
Re: card dealer Denis McMahon <denismfmcmahon@gmail.com> - 2013-09-27 16:10 +0000
Re: card dealer Dave Angel <davea@davea.name> - 2013-09-27 21:00 +0000
Re: card dealer Ned Batchelder <ned@nedbatchelder.com> - 2013-09-27 17:40 -0400
Re: card dealer Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-28 06:01 +0000
Re: card dealer Ned Batchelder <ned@nedbatchelder.com> - 2013-09-28 06:31 -0400
Re: card dealer Dave Angel <davea@davea.name> - 2013-09-28 12:56 +0000
Re: card dealer Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-28 16:49 +0200
Re: card dealer Tim Roberts <timr@probo.com> - 2013-09-28 17:04 -0700
csiph-web