Difference between revisions of "Rn2"

From NetHackWiki
Jump to navigation Jump to search
(Creating these pages because I've been misreading rn1 every single time.)
(No difference)

Revision as of 23:08, 16 December 2010

rn2(x)[1] is a pseudo-random number function used in NetHack when a result should be unweighted. The range of values is between 0 and x-1 inclusive (that is, 0<=rn2(x)<x).

References

This page is a stub. Should you wish to do so, you can contribute by expanding this page.