From: robin.vowels@gmail.com
Subject: Re: Simple hash or pseudo-random function
Date: Mon, 16 Jul 2018 21:44:58 -0700 (PDT)
Date: 2018-07-16T21:44:58-07:00 [thread overview]
Message-ID: <51d4a3fe-3c40-45b9-b900-a093d4c01810@googlegroups.com> (raw)
In-Reply-To: <edeff446-a5f2-42c4-82c2-ac2d20f05955@googlegroups.com>
On Monday, July 16, 2018 at 11:34:02 PM UTC+10, Shark8 wrote:
> On Monday, July 16, 2018 at 2:20:28 AM UTC-6, gautier...@hotmail.com wrote:
> > Hello,
> > Does someone have a function that would take an integer (range 0 .. 2**63), not uniformily distributed (it's a code with some meaning) and return a number that is pseudo-random, uniformily distributed (could be a floating-point number or an integer in a range of minimum length 365) ?
> > The difficulty for me is to find a very simple function. There are many that are for hashing strings, but they could be too time-consuming: it's for a number-crunching program where this function will be called billions of times, so I'm looking for something really simple (and fast :-) ).
> > TIA
>
> There was somebody a few years back who was an older Mathematician who posted a RNG function to this board some years ago. That might be useful for you. (I want to say his method was KISS#### or something like that.)
That was George Marsaglia, and he was author of a number of
excellend pseudo random number generators.
next prev parent reply other threads:[~2018-07-17 4:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-16 8:20 Simple hash or pseudo-random function gautier_niouzes
2018-07-16 13:34 ` Shark8
2018-07-17 4:44 ` robin.vowels [this message]
2018-07-16 14:52 ` Marius Amado-Alves
2018-07-16 20:59 ` gautier_niouzes
2018-07-16 17:17 ` Jeffrey R. Carter
2018-07-16 21:14 ` gautier_niouzes
2018-07-17 6:09 ` Jeffrey R. Carter
2018-07-18 13:38 ` gautier_niouzes
2018-08-01 9:08 ` gautier_niouzes
2018-07-17 0:40 ` Dan'l Miller
2018-07-17 6:44 ` Paul Rubin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox