Rnl

From NetHackWiki
Revision as of 14:03, 18 August 2009 by Tjr (talk | contribs) (removed dead link)
Jump to navigation Jump to search
For the source, see rnl in rnd.c.

rnl(x) is a pseudo-random number function used in NetHack when a result should be weighted by Luck.

rnl(x) has the same range as rn2(x) (that is, 0<=rnl(x)<x), but is weighted toward 0 if you have positive Luck, and toward x-1 if you have negative Luck.