in reply to Re^2: Fractional dice (more not fewer)
in thread Fractional dice
averaging the results of 2 random floats yields what appears to be a parabolic distribution
I believe you are probably seeing a side effect of the pseudo-random sequence algorithm. If you add two (independent) uniform random distributions, you get a 'tent' distribution with straight sides. The results of adjacent calls to rand() are not as independent as one might hope.
Simulating the situation with increasingly fine buckets by using "dice" doesn't change the shape of the graph.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Fractional dice (buckets)
by Roy Johnson (Monsignor) on Jan 30, 2004 at 18:45 UTC |