Difference between revisions of "Rnd"
Jump to navigation
Jump to search
Ray Chason (talk | contribs) (Random variable infobox; prettify the reference) |
Ray Chason (talk | contribs) m (I said I'd prettify the reference, I might as well do it) |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:rnd}} | {{DISPLAYTITLE:rnd}} | ||
{{randomvariable|name=rnd(x)|graph=rnd.svg|caption=[[wikipedia:Probability mass function|Probability mass function]] of rnd(10).|distribution=[[Wikipedia:discrete uniform distribution|uniform]]|mean=<math>(x-1)/2</math>|stddev=<math>\sqrt{(x^2-1)/12}</math>}} | {{randomvariable|name=rnd(x)|graph=rnd.svg|caption=[[wikipedia:Probability mass function|Probability mass function]] of rnd(10).|distribution=[[Wikipedia:discrete uniform distribution|uniform]]|mean=<math>(x-1)/2</math>|stddev=<math>\sqrt{(x^2-1)/12}</math>}} | ||
− | rnd(x)<ref> | + | rnd(x)<ref>{{function|rnd.c|rnd}}</ref> is a pseudo-random number function used in NetHack when a result should be unweighted. The range of values is between 1 and x inclusive (that is, 1<=rnd(x)<=x). |
==References== | ==References== |
Revision as of 23:34, 1 February 2011
rnd(x)[1] is a pseudo-random number function used in NetHack when a result should be unweighted. The range of values is between 1 and x inclusive (that is, 1<=rnd(x)<=x).
References
- This page is a stub. Should you wish to do so, you can contribute by expanding this page.