9front - general discussion about 9front
 help / color / mirror / Atom feed
* Quick PRNG question
@ 2019-09-24  7:59 Ethan Gardener
  2019-09-24  9:45 ` [9front] " Julius Schmidt
  0 siblings, 1 reply; 4+ messages in thread
From: Ethan Gardener @ 2019-09-24  7:59 UTC (permalink / raw)
  To: 9front

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?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9front] Quick PRNG question
  2019-09-24  7:59 Quick PRNG question Ethan Gardener
@ 2019-09-24  9:45 ` Julius Schmidt
  2019-09-24  9:53   ` Steve Simon
  2019-09-28 18:11   ` Ethan Gardener
  0 siblings, 2 replies; 4+ messages in thread
From: Julius Schmidt @ 2019-09-24  9:45 UTC (permalink / raw)
  To: 9front

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?
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9front] Quick PRNG question
  2019-09-24  9:45 ` [9front] " Julius Schmidt
@ 2019-09-24  9:53   ` Steve Simon
  2019-09-28 18:11   ` Ethan Gardener
  1 sibling, 0 replies; 4+ messages in thread
From: Steve Simon @ 2019-09-24  9:53 UTC (permalink / raw)
  To: 9front


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?
>> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9front] Quick PRNG question
  2019-09-24  9:45 ` [9front] " Julius Schmidt
  2019-09-24  9:53   ` Steve Simon
@ 2019-09-28 18:11   ` Ethan Gardener
  1 sibling, 0 replies; 4+ messages in thread
From: Ethan Gardener @ 2019-09-28 18:11 UTC (permalink / raw)
  To: 9front

Thanks, both of you.  Sorry for list noise, not sure how I sent it to the wrong address.

On Tue, Sep 24, 2019, at 10:45 AM, Julius Schmidt 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?
> >
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-28 18:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-24  7:59 Quick PRNG question Ethan Gardener
2019-09-24  9:45 ` [9front] " Julius Schmidt
2019-09-24  9:53   ` Steve Simon
2019-09-28 18:11   ` Ethan Gardener

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).