From: Steve Simon <steve@quintile.net>
To: 9front@9front.org
Subject: Re: [9front] Quick PRNG question
Date: Tue, 24 Sep 2019 10:53:25 +0100 [thread overview]
Message-ID: <08256730-9364-4F53-A4A4-C5F4CD2A6F8A@quintile.net> (raw)
In-Reply-To: <alpine.LNX.2.00.1909241144280.7981@phi>
i would normally defer to “numerical recipes” in such matters. if you just want a square distribution then xor and a shift register is nice and simple. the book also has a slower algorithm which reshapes this to a gaussian without much effort.
-Steve
> On 24 Sep 2019, at 10:45 am, Julius Schmidt <aiju@phicode.de> wrote:
>
> Look up xorshift and its variants
>
> It's about a million times simpler than Mersenne twister and some of the variants are much better at passing statistical tests.
>
>> On Tue, 24 Sep 2019, Ethan Gardener wrote:
>>
>> Hi Aiju! I remember some time back you laughed at Mersenne twister PRNG, citing another PRNG as simpler and better. What was the better PRNG?
>>
next prev parent reply other threads:[~2019-09-24 9:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-24 7:59 Ethan Gardener
2019-09-24 9:45 ` [9front] " Julius Schmidt
2019-09-24 9:53 ` Steve Simon [this message]
2019-09-28 18:11 ` Ethan Gardener
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=08256730-9364-4F53-A4A4-C5F4CD2A6F8A@quintile.net \
--to=steve@quintile.net \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).