comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Eachus <rieachus@comcast.net>
Subject: Re: Ada.Numerics.Float_Random.Generator question
Date: Fri, 30 Sep 2016 20:35:41 -0700 (PDT)
Date: 2016-09-30T20:35:41-07:00	[thread overview]
Message-ID: <875ab579-a6b3-4552-b1a8-16f68da6d704@googlegroups.com> (raw)
In-Reply-To: <b9e7bcdb-5089-46e4-aa98-b2fe5c8ded8c@googlegroups.com>

On Thursday, September 29, 2016 at 5:42:17 AM UTC-4, Some Dude wrote:
> To add to Bruce's comment, aren't *all* PRNGs cyclic? I was always under this impression, but admittedly never looked for a proof.

No, a simple counter-example is a generator that uses the digits of pi.  The digits of any transcendental number will do. I'll have to think about generator based on a square root. (Not about whether it would work, it would.  But about how to implement it so that you don't have arbitrary pauses.  Hmm.  One task to generate the root?  Managing priorities could be tricky.)

  reply	other threads:[~2016-10-01  3:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-17 19:40 Ada.Numerics.Float_Random.Generator question Andrew Shvets
2016-09-17 20:09 ` J-P. Rosen
2016-09-17 20:14   ` Andrew Shvets
2016-09-17 21:01 ` Jeffrey R. Carter
2016-09-17 23:53   ` Andrew Shvets
2016-09-19 19:07 ` rieachus
2016-09-25 23:41 ` brbarkstrom
2016-09-26 13:04   ` Robert Eachus
2016-09-26 18:48     ` brbarkstrom
2016-09-29  9:42       ` Some Dude
2016-10-01  3:35         ` Robert Eachus [this message]
2016-10-01  3:59           ` Paul Rubin
2016-10-01 14:23             ` Robert Eachus
2016-10-01 15:49               ` Dmitry A. Kazakov
2016-10-01 16:44                 ` Robert Eachus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox