in reply to weighted biased dice roll
[No longer applies]
The code you posted doesn't compile. Once that's fixed, it still doesn't work. Because all of weights are larger than the maximum value returned by rand (slightly less than one), It always prints the first value returned by each.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: weighted biased dice roll
by sys0p (Novice) on Aug 05, 2014 at 17:42 UTC |