[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] How many RNG instances?

From: Brian Gough
Subject: Re: [Help-gsl] How many RNG instances?
Date: Sun, 09 Jul 2006 19:21:37 +0100
User-agent: Wanderlust/2.14.0 (Africa) Emacs/21.3 Mule/5.0 (SAKAKI)

At Thu, 6 Jul 2006 11:55:40 +0200,
Joe wrote:
> I have a simple question. Do I need a seperate random number generator
> instance for each distribution I use? E.g, I have two different simulation
> parameters, one exponential, the other poisson distributed.
> Basically, right now, my RNG is wrapped within a singleton class meaning
> that I have only one instance, systemwide. Is this a good approach?

Yes, one global generator is fine for a single threaded program.

Brian Gough
(GSL Maintainer)

Network Theory Ltd,
Commercial support for GSL ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]