Unbias a random generator: Difference between revisions
Content added Content deleted
(CoffeeScript) |
(→{{header|CoffeeScript}}: Range of N is wrong) |
||
Line 221: | Line 221: | ||
=={{header|CoffeeScript}}== |
=={{header|CoffeeScript}}== |
||
{{incomplete|CoffeeScript|range of N is 3..6 not 5..9}} |
|||
<lang coffeescript> |
<lang coffeescript> |
||
biased_rand_function = (n) -> |
biased_rand_function = (n) -> |