Re: random numbers in fortran
- From: Craig Powers <enigma@xxxxxxxxxx>
- Date: Tue, 28 Nov 2006 16:48:16 -0500
Mark Morss wrote:
How, for example, would one set "cycle length" to be sure that each one
of 52! combinations had the same chance of coming up? My Fortran
reference is Chapman's _Fortran 90/95 for Scientists and Engineers_,
and in its brief discussion of the RANDOM_SEED and RANDOM_NUMBER
intrinsics, it makes no mention of "cycle length."
The cycle length is a property of the generator, so it's natural that it would not be mentioned in a pure discussion of the language -- the actual generator used by a particular compiler is a QofI issue.
As far as I know, most generators do have a reported cycle length. Ideally, the cycle length from RANDOM_NUMBER is included with the documentation of your favorite compiler.
.
- References:
- random numbers in fortran
- From: lane straatman
- Re: random numbers in fortran
- From: Thomas Koenig
- Re: random numbers in fortran
- From: Gordon Sande
- Re: random numbers in fortran
- From: Mark Morss
- random numbers in fortran
- Prev by Date: Re: defining an arbitrary type in your newer Fortrans
- Next by Date: Re: random numbers in fortran
- Previous by thread: Re: random numbers in fortran
- Next by thread: Re: random numbers in fortran
- Index(es):
Relevant Pages
|