Topic: RANDOM-FUNCTIONS
Author: davisonj@bnr.ca (Jack Wasserman)
Date: 8 Oct 1993 12:24:49 -0500 Raw View
In article <CEH615.Enp@informatik.uni-muenchen.de>,
schrepf@informatik.uni-muenchen.de (Ulrike Schrepf) wrote:
>Does anybody no [sic] any random functions [?] in C++ that do not turn out
>UNIFORMLY distributed random numbers??
From what I can tell, X3J16/93-0010 does not specify any "random
functions" (whatever that means), although Ulrike Schrepf may be referring to
functions which, under certain circumstances, produce undefined behavior --
there are plenty of those, although since the behavior is undefined, one cannot
be guaranteed that they will not "turn out UNIFORMLY distributed random
numbers".
Only the (maximum allowable) range of rand(void) is specified in C,
(see American National Standard X3.159-1989, Section 4.10.2.1.), and it doesn't
look like the C++ standard will be strengthening that specification. I can't
think of one compelling reason why it should at this point.
--
+-------+ "Those of us who actually knew how to design practical software were
|John | laughing our heads off when the 'visionaries' started talking about
|Davison| coherence and all these other idealistic, foolish things." -- Dave
+-------+ Grubbs, "Project Athena: Ten Years After", _X_Journal_, Sep/Oct '93
Author: jimad@microsoft.com (Jim Adcock)
Date: 11 Oct 93 19:52:49 GMT Raw View
In article <CEH615.Enp@informatik.uni-muenchen.de> schrepf@informatik.uni-muenchen.de (Ulrike Schrepf) writes:
|
|
|Hi,
|
|Does anybody no any random functions in C++ that do not turn out
|
|UNIFORMLY distributed random numbers??
|
If not uniform, then what distribution do you want? Distributions
other than uniform are commonly implemented by taking a uniform
number generator and running it through a mapping function and/or
reject regions. This is well covered, at least for one-dimensional
distributions, in "Numerical Methods in C".
Author: schrepf@informatik.uni-muenchen.de (Ulrike Schrepf)
Date: Wed, 6 Oct 1993 12:15:05 GMT Raw View
Hi,
Does anybody no any random functions in C++ that do not turn out
UNIFORMLY distributed random numbers??
Thanx
Ulli