Groups | Search | Server Info | Login | Register
Groups > comp.lang.lisp > #60784
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Stefan Monnier <monnier@iro.umontreal.ca> |
| Newsgroups | comp.lang.lisp |
| Subject | Make a random-state from a non-random source |
| Date | Mon, 04 May 2026 12:46:57 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 14 |
| Message-ID | <jwvmryfku8t.fsf-monnier+comp.lang.lisp@gnu.org> (permalink) |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| Injection-Date | Tue, 05 May 2026 03:20:32 +0000 (UTC) |
| Injection-Info | dont-email.me; logging-data="165555"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jxTUB4sZ4LTdtd6O2H+4+/yiKxCTMxaM="; posting-host="744367fc72a9769abf9209e575164c40" |
| User-Agent | Gnus/5.13 (Gnus v5.13) |
| Cancel-Lock | sha1:yp79DrVRHKmrG5nJ4DfmkFty9vY= sha1:oAPA9BtS4UoghEP7FkaMIPPfVtE= sha256:AQHSRaSEETc60SW/MqmOfoOxEauIXnyservyxEcRALo= sha1:oHTJjcpC2L9ZXSCwOvmWQovqrCU= |
| Xref | csiph.com comp.lang.lisp:60784 |
Show key headers only | View raw
Reading the CLHS about `make-random-state` I can't see how to create a "deterministic" random state. I want it to be deterministic in the sense that if I re-run my program (including after changing it a bit), I'll get the exact same sequence of random numbers. It's OK if the sequence is different when run on a different Lisp implementation, OTOH. I guess I could print a random state into a file and then read it back in, but that depends on internals, so it's doubly messy. === Stefan
Back to comp.lang.lisp | Previous | Next — Next in thread | Find similar
Make a random-state from a non-random source Stefan Monnier <monnier@iro.umontreal.ca> - 2026-05-04 12:46 -0400
Re: Make a random-state from a non-random source Alan Bawden <alan@csail.mit.edu> - 2026-05-05 00:45 -0400
Re: Make a random-state from a non-random source Stefan Monnier <monnier@iro.umontreal.ca> - 2026-05-05 16:03 -0400
Re: Make a random-state from a non-random source tfb <no_email@invalid.invalid> - 2026-05-09 18:20 +0000
Re: Make a random-state from a non-random source Stefan Monnier <monnier@iro.umontreal.ca> - 2026-05-11 11:23 -0400
csiph-web