# rn1

From NetHackWiki

rn1(x,y)
| |
---|---|

Distribution | uniform |

Mean | (x-1)/2+y |

Standard deviation | sqrt((x^2-1)/12) |

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**.

**This page may need to be updated for NetHack 3.6.0.**

It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.

**Editors:** After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to {{nethack-360}} or {{noversion}} as appropriate.