in reply to Re: Fractional dice (more not fewer)
in thread Fractional dice
At this point, anybody reading who did well in probability and statistics is having a hearty laugh. Clearly it doesn't correspond well to dice, although it does give a practically useful probability distribution over a selected range (using normals, you can't be sure your results will be in your desired range).
Inspired to produce a more bell-like result and to more accurately simulate real-life dice-throwing, I came up with a new sub. The fewer sides the dice have, the more you can throw and sum to get a result in the desired range, so I made two-sided dice (which are usually called coins):
Results at the extreme ends of the range are very sparse,sub flip_coins { my ($low_end, $range) = @_; my $result = 0; $result += int(rand 2) for (2..$range); $low_end + $result; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Fractional dice (buckets)
by tye (Sage) on Jan 30, 2004 at 16:35 UTC | |
by Roy Johnson (Monsignor) on Jan 30, 2004 at 18:45 UTC |