comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: Ada 83 Random Generator - or ??
Date: Fri, 15 Jun 2001 03:06:12 GMT
Date: 2001-06-15T03:06:12+00:00	[thread overview]
Message-ID: <3B297B8A.3FB47517@acm.org> (raw)
In-Reply-To: 3B28EF6D.BE151572@ftw.rsc.raytheon.com

Wes Groleau wrote:
> 
> Is there out there a "free" package vaguely similar to
> Ada.Numerics.Discrete_Random, which is portable to all
> Ada 83 AND 95 compilers ?

The PragmAda reusable components includes an implementation of
Marsaglia's "universal" random number generator, and I may have a copy
of the 83 version around somewhere. In any case, there are not too many
95-isms in the 95 version, so you could clean it up yourself pretty
easily. It includes a function that returns a uniformly distributed
integer in a given range, which is "vaguely similar to
Ada.Numerics.Discrete_Random". It should also be completely portable
once converted completely to Ada 83.

-- 
Jeff Carter
"We burst our pimples at you."
Monty Python & the Holy Grail



  parent reply	other threads:[~2001-06-15  3:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-14 17:07 Ada 83 Random Generator - or ?? Wes Groleau
2001-06-14 17:18 ` Ted Dennison
2001-06-15  3:06 ` Jeffrey Carter [this message]
2001-06-15 11:59 ` Gautier
replies disabled

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