Difference between revisions of "Rnd"

From NetHackWiki
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:rnd}} rnd(x)<ref>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 ...")
 
m (typo)
Line 1: Line 1:
 
{{DISPLAYTITLE:rnd}}
 
{{DISPLAYTITLE:rnd}}
rnd(x)<ref>[[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<=rn2(x)<=x).  
+
rnd(x)<ref>[[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 05:59, 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.