Difference between revisions of "Rn1"
Jump to navigation
Jump to search
(Created page with "{{DISPLAYTITLE:rn1}} rn1(x, y)<ref>hack.h#line291</ref> is a pseudo-random number macro used in NetHack when a result should be unweighted. It is equivalent to ''rn2(x) + y''...") |
m (link to rn2) |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:rn1}} | {{DISPLAYTITLE:rn1}} | ||
rn1(x, y)<ref>[[hack.h#line291]]</ref> is a pseudo-random number macro used in NetHack when a result should be unweighted. It is equivalent to ''rn2(x) + y''. The range of values is between y and y+x-1 inclusive (that is, y<=rn1(x,y)<x+y). | rn1(x, y)<ref>[[hack.h#line291]]</ref> is a pseudo-random number macro used in NetHack when a result should be unweighted. It is equivalent to ''rn2(x) + y''. The range of values is between y and y+x-1 inclusive (that is, y<=rn1(x,y)<x+y). | ||
+ | |||
+ | See also [[rn2]]. | ||
==References== | ==References== |
Revision as of 18:20, 8 January 2011
rn1(x, y)[1] is a pseudo-random number macro used in NetHack when a result should be unweighted. It is equivalent to rn2(x) + y. The range of values is between y and y+x-1 inclusive (that is, y<=rn1(x,y)<x+y).
See also rn2.
References
- This page is a stub. Should you wish to do so, you can contribute by expanding this page.