This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Random Number Seed
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: gsl-discuss at sources dot redhat dot com
- Date: Thu, 4 Mar 2004 17:41:56 +0000
- Subject: Re: Random Number Seed
- References: <OF1F9225D9.DD46CA3A-ON80256E4A.00387696@db.com>
Przemyslaw Sliwa writes:
> I have a question: When one wants to use the random number seed
> different than the default one (equals to 0) one can use the macro
> GSL_RNG_SEED=seed from the command line. I would like to use the
> system time as the seed and have no idea how one can use the it
> from the command line. Therefore I want to use the function clock()
> in my C program. Could you help me how the seed can be initialized
> from the function claock() within my c program?
For real work be sure to record any non-deterministic seed values in
case they are needed for later investigation.
--
Brian