D (function)
Revision as of 19:11, 17 February 2022 by Darth l33t (talk | contribs) (Created page with "{{randomvariable|name=d(n,x)|graph=dfunction.png|caption=Probability mass function of d(3,6).|distribution=Wikipedia:normal_distribut...")
d(n,x) | |
---|---|
Distribution | normal (if n > 1) |
Mean | |
Standard deviation |
d(n,x)[1] is a pseudo-random number function used in NetHack to simulate the rolling of multiple dice. The range of values is between n and n*x inclusive (that is, n ≤ d(n,x) ≤ n*x). It is equivalent to ndx in D notation, or rolling n independent dice with x sides each and summing the results.
References
- This page is a stub. Should you wish to do so, you can contribute by expanding this page.