<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nethackwiki.com/index.php?action=history&amp;feed=atom&amp;title=Rn1</id>
	<title>Rn1 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nethackwiki.com/index.php?action=history&amp;feed=atom&amp;title=Rn1"/>
	<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Rn1&amp;action=history"/>
	<updated>2026-07-21T16:43:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.5</generator>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Rn1&amp;diff=173834&amp;oldid=prev</id>
		<title>Furey: nethack-366 -&gt; nethack-367. easy upgrade! (ofc i reviewed the source)</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Rn1&amp;diff=173834&amp;oldid=prev"/>
		<updated>2024-07-03T01:56:21Z</updated>

		<summary type="html">&lt;p&gt;nethack-366 -&amp;gt; nethack-367. easy upgrade! (ofc i reviewed the source)&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 01:56, 3 July 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot; &gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{randomvariable|name=rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;,&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)|graph=rn1.svg|caption=[[wikipedia:Probability mass function|Probability mass function]] of rn1(10,5)|distribution=[[Wikipedia:discrete uniform distribution|uniform]]|mean={{sfrac|&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt; &amp;amp;minus; 1|2}} + &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;|stddev=sqrt({{sfrac|x&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; &amp;amp;minus; 1|12}})}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{randomvariable|name=rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;,&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)|graph=rn1.svg|caption=[[wikipedia:Probability mass function|Probability mass function]] of rn1(10,5)|distribution=[[Wikipedia:discrete uniform distribution|uniform]]|mean={{sfrac|&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt; &amp;amp;minus; 1|2}} + &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;|stddev=sqrt({{sfrac|x&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; &amp;amp;minus; 1|12}})}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{distinguish|rnl}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{distinguish|rnl}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;, &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)'''{{refsrc|include/hack.h|497|nethack=3.6.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;6&lt;/del&gt;}} is a pseudo-random number macro used in ''NetHack'' when a result should be unweighted. It is equivalent to rn2(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;)&amp;amp;nbsp;+ &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;. The range of values is between &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt; and &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;&amp;amp;nbsp;+ &amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;1 inclusive (that is, &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;le; rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;,&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)&amp;amp;nbsp;&amp;amp;lt; &amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;&amp;amp;nbsp;+&amp;amp;nbsp;&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;).  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;, &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)'''{{refsrc|include/hack.h|497|nethack=3.6.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;7&lt;/ins&gt;}} is a pseudo-random number macro used in ''NetHack'' when a result should be unweighted. It is equivalent to rn2(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;)&amp;amp;nbsp;+ &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;. The range of values is between &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt; and &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;&amp;amp;nbsp;+ &amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;1 inclusive (that is, &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;le; rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;,&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)&amp;amp;nbsp;&amp;amp;lt; &amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;&amp;amp;nbsp;+&amp;amp;nbsp;&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;).  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;See also [[rn2]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;See also [[rn2]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot; &gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Random number functions]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Random number functions]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{nethack-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;366&lt;/del&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{nethack-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;367&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Furey</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Rn1&amp;diff=144971&amp;oldid=prev</id>
		<title>Cathartes: update ref to 3.6.6; de-stub since there's really not much that can be written about this</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Rn1&amp;diff=144971&amp;oldid=prev"/>
		<updated>2022-03-19T17:35:10Z</updated>

		<summary type="html">&lt;p&gt;update ref to 3.6.6; de-stub since there&amp;#039;s really not much that can be written about this&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:35, 19 March 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot; &gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{randomvariable|name=rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;,&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)|graph=rn1.svg|caption=[[wikipedia:Probability mass function|Probability mass function]] of rn1(10,5)|distribution=[[Wikipedia:discrete uniform distribution|uniform]]|mean={{sfrac|&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt; &amp;amp;minus; 1|2}} + &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;|stddev=sqrt({{sfrac|x&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; &amp;amp;minus; 1|12}})}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{randomvariable|name=rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;,&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)|graph=rn1.svg|caption=[[wikipedia:Probability mass function|Probability mass function]] of rn1(10,5)|distribution=[[Wikipedia:discrete uniform distribution|uniform]]|mean={{sfrac|&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt; &amp;amp;minus; 1|2}} + &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;|stddev=sqrt({{sfrac|x&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; &amp;amp;minus; 1|12}})}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{distinguish|rnl}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{distinguish|rnl}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;, &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)'''{{refsrc|hack.h|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;291&lt;/del&gt;}} is a pseudo-random number macro used in ''NetHack'' when a result should be unweighted. It is equivalent to rn2(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;)&amp;amp;nbsp;+ &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;. The range of values is between &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt; and &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;&amp;amp;nbsp;+ &amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;1 inclusive (that is, &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;le; rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;,&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)&amp;amp;nbsp;&amp;amp;lt; &amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;&amp;amp;nbsp;+&amp;amp;nbsp;&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;).  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;, &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)'''{{refsrc|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;include/&lt;/ins&gt;hack.h|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;497|nethack=3.6.6&lt;/ins&gt;}} is a pseudo-random number macro used in ''NetHack'' when a result should be unweighted. It is equivalent to rn2(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;)&amp;amp;nbsp;+ &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;. The range of values is between &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt; and &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;&amp;amp;nbsp;+ &amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;1 inclusive (that is, &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;le; rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;,&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)&amp;amp;nbsp;&amp;amp;lt; &amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;&amp;amp;nbsp;+&amp;amp;nbsp;&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;).  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;See also [[rn2]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;See also [[rn2]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot; &gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{stub}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Random number functions]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Random number functions]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{nethack-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;343&lt;/del&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{nethack-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;366&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Cathartes</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Rn1&amp;diff=131607&amp;oldid=prev</id>
		<title>Ardub23: {{distinguish}} for hatnote</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Rn1&amp;diff=131607&amp;oldid=prev"/>
		<updated>2020-01-28T04:35:15Z</updated>

		<summary type="html">&lt;p&gt;{{distinguish}} for hatnote&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 04:35, 28 January 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:rn1}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:rn1}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{randomvariable|name=rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;,&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)|graph=rn1.svg|caption=[[wikipedia:Probability mass function|Probability mass function]] of rn1(10,5)|distribution=[[Wikipedia:discrete uniform distribution|uniform]]|mean={{sfrac|&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt; &amp;amp;minus; 1|2}} + &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;|stddev=sqrt({{sfrac|x&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; &amp;amp;minus; 1|12}})}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{randomvariable|name=rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;,&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)|graph=rn1.svg|caption=[[wikipedia:Probability mass function|Probability mass function]] of rn1(10,5)|distribution=[[Wikipedia:discrete uniform distribution|uniform]]|mean={{sfrac|&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt; &amp;amp;minus; 1|2}} + &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;|stddev=sqrt({{sfrac|x&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; &amp;amp;minus; 1|12}})}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;: ''Not to be confused with [[&lt;/del&gt;rnl&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;]].''&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{distinguish|&lt;/ins&gt;rnl&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;, &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)'''{{refsrc|hack.h|291}} is a pseudo-random number macro used in ''NetHack'' when a result should be unweighted. It is equivalent to rn2(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;)&amp;amp;nbsp;+ &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;. The range of values is between &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt; and &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;&amp;amp;nbsp;+ &amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;1 inclusive (that is, &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;le; rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;,&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)&amp;amp;nbsp;&amp;amp;lt; &amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;&amp;amp;nbsp;+&amp;amp;nbsp;&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;).  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;, &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)'''{{refsrc|hack.h|291}} is a pseudo-random number macro used in ''NetHack'' when a result should be unweighted. It is equivalent to rn2(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;)&amp;amp;nbsp;+ &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;. The range of values is between &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt; and &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;&amp;amp;nbsp;+ &amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;1 inclusive (that is, &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;le; rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;,&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)&amp;amp;nbsp;&amp;amp;lt; &amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;&amp;amp;nbsp;+&amp;amp;nbsp;&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;).  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ardub23</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Rn1&amp;diff=131357&amp;oldid=prev</id>
		<title>Ardub23: Added hatnote: &quot;Not to be confused with rnl&quot;</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Rn1&amp;diff=131357&amp;oldid=prev"/>
		<updated>2020-01-23T23:41:44Z</updated>

		<summary type="html">&lt;p&gt;Added hatnote: &amp;quot;Not to be confused with &lt;a href=&quot;/wiki/Rnl&quot; title=&quot;Rnl&quot;&gt;rnl&lt;/a&gt;&amp;quot;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 23:41, 23 January 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:rn1}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:rn1}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{randomvariable|name=rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;,&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)|graph=rn1.svg|caption=[[wikipedia:Probability mass function|Probability mass function]] of rn1(10,5)|distribution=[[Wikipedia:discrete uniform distribution|uniform]]|mean={{sfrac|&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt; &amp;amp;minus; 1|2}} + &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;|stddev=sqrt({{sfrac|x&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; &amp;amp;minus; 1|12}})}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{randomvariable|name=rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;,&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)|graph=rn1.svg|caption=[[wikipedia:Probability mass function|Probability mass function]] of rn1(10,5)|distribution=[[Wikipedia:discrete uniform distribution|uniform]]|mean={{sfrac|&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt; &amp;amp;minus; 1|2}} + &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;|stddev=sqrt({{sfrac|x&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; &amp;amp;minus; 1|12}})}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;: ''Not to be confused with [[rnl]].''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;, &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)'''{{refsrc|hack.h|291}} is a pseudo-random number macro used in ''NetHack'' when a result should be unweighted. It is equivalent to rn2(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;)&amp;amp;nbsp;+ &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;. The range of values is between &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt; and &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;&amp;amp;nbsp;+ &amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;1 inclusive (that is, &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;le; rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;,&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)&amp;amp;nbsp;&amp;amp;lt; &amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;&amp;amp;nbsp;+&amp;amp;nbsp;&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;).  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;, &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)'''{{refsrc|hack.h|291}} is a pseudo-random number macro used in ''NetHack'' when a result should be unweighted. It is equivalent to rn2(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;)&amp;amp;nbsp;+ &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;. The range of values is between &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt; and &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;&amp;amp;nbsp;+ &amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;1 inclusive (that is, &amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;le; rn1(&amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;,&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;)&amp;amp;nbsp;&amp;amp;lt; &amp;lt;var&amp;gt;x&amp;lt;/var&amp;gt;&amp;amp;nbsp;+&amp;amp;nbsp;&amp;lt;var&amp;gt;y&amp;lt;/var&amp;gt;).  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ardub23</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Rn1&amp;diff=130482&amp;oldid=prev</id>
		<title>Ardub23: Formatting fixes</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Rn1&amp;diff=130482&amp;oldid=prev"/>
		<updated>2020-01-11T22:42:52Z</updated>

		<summary type="html">&lt;p&gt;Formatting fixes&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 22:42, 11 January 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:rn1}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:rn1}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{randomvariable|name=rn1(x,y)|graph=rn1.svg|caption=[[wikipedia:Probability mass function|Probability mass function]] of rn1(10,5)&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/del&gt;|distribution=[[Wikipedia:discrete uniform distribution|uniform]]|mean=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(&lt;/del&gt;x&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-&lt;/del&gt;1&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;)/&lt;/del&gt;2+y|stddev=sqrt(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(&lt;/del&gt;x&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;^&lt;/del&gt;2&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-&lt;/del&gt;1&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;)/&lt;/del&gt;12)}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{randomvariable|name=rn1(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;var&amp;gt;&lt;/ins&gt;x&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/var&amp;gt;&lt;/ins&gt;,&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;var&amp;gt;&lt;/ins&gt;y&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/var&amp;gt;&lt;/ins&gt;)|graph=rn1.svg|caption=[[wikipedia:Probability mass function|Probability mass function]] of rn1(10,5)|distribution=[[Wikipedia:discrete uniform distribution|uniform]]|mean=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{sfrac|&amp;lt;var&amp;gt;&lt;/ins&gt;x&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/var&amp;gt; &amp;amp;minus; &lt;/ins&gt;1&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|&lt;/ins&gt;2&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}} &lt;/ins&gt;+ &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;var&amp;gt;&lt;/ins&gt;y&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/var&amp;gt;&lt;/ins&gt;|stddev=sqrt(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{sfrac|&lt;/ins&gt;x&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;sup&amp;gt;&lt;/ins&gt;2&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/sup&amp;gt; &amp;amp;minus; &lt;/ins&gt;1&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|&lt;/ins&gt;12&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}}&lt;/ins&gt;)}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;rn1(x, y){{refsrc|hack.h|291}} is a pseudo-random number macro used in NetHack when a result should be unweighted. It is equivalent to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/del&gt;rn2(x) + y&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/del&gt;. The range of values is between y and y+x&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-&lt;/del&gt;1 inclusive (that is, y&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/del&gt;rn1(x,y)&amp;lt;x+y).  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;rn1(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;var&amp;gt;&lt;/ins&gt;x&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/var&amp;gt;&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;var&amp;gt;&lt;/ins&gt;y&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/var&amp;gt;&lt;/ins&gt;)&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;{{refsrc|hack.h|291}} is a pseudo-random number macro used in &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/ins&gt;NetHack&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'' &lt;/ins&gt;when a result should be unweighted. It is equivalent to rn2(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;var&amp;gt;&lt;/ins&gt;x&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/var&amp;gt;&lt;/ins&gt;)&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;nbsp;&lt;/ins&gt;+ &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;var&amp;gt;&lt;/ins&gt;y&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/var&amp;gt;&lt;/ins&gt;. The range of values is between &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;var&amp;gt;&lt;/ins&gt;y&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/var&amp;gt; &lt;/ins&gt;and &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;var&amp;gt;&lt;/ins&gt;y&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/var&amp;gt;&amp;amp;nbsp;&lt;/ins&gt;+ &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;var&amp;gt;&lt;/ins&gt;x&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;&lt;/ins&gt;1 inclusive (that is, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;var&amp;gt;&lt;/ins&gt;y&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/var&amp;gt;&amp;amp;nbsp;&amp;amp;le; &lt;/ins&gt;rn1(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;var&amp;gt;&lt;/ins&gt;x&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/var&amp;gt;&lt;/ins&gt;,&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;var&amp;gt;&lt;/ins&gt;y&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/var&amp;gt;&lt;/ins&gt;)&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;nbsp;&amp;amp;lt; &lt;/ins&gt;&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;var&amp;gt;&lt;/ins&gt;x&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/var&amp;gt;&amp;amp;nbsp;&lt;/ins&gt;+&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;nbsp;&amp;lt;var&amp;gt;&lt;/ins&gt;y&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/var&amp;gt;&lt;/ins&gt;).  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;See also [[rn2]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;See also [[rn2]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ardub23</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Rn1&amp;diff=99145&amp;oldid=prev</id>
		<title>ChasonBot at 02:38, 21 December 2015</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Rn1&amp;diff=99145&amp;oldid=prev"/>
		<updated>2015-12-21T02:38:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 02:38, 21 December 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot; &gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{stub}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{stub}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Random number functions]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Random number functions]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{nethack-343}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>ChasonBot</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Rn1&amp;diff=95728&amp;oldid=prev</id>
		<title>Train: It would appear that the math tags prevent the template from being properly parsed.</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Rn1&amp;diff=95728&amp;oldid=prev"/>
		<updated>2015-07-15T10:08:29Z</updated>

		<summary type="html">&lt;p&gt;It would appear that the math tags prevent the template from being properly parsed.&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 10:08, 15 July 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:rn1}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:rn1}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{randomvariable|name=rn1(x,y)|graph=rn1.svg|caption=[[wikipedia:Probability mass function|Probability mass function]] of rn1(10,5).|distribution=[[Wikipedia:discrete uniform distribution|uniform]]|mean=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;math&amp;gt;&lt;/del&gt;(x-1)/2+y&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/math&amp;gt;&lt;/del&gt;|stddev=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;math&amp;gt;\&lt;/del&gt;sqrt&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{&lt;/del&gt;(x^2-1)/12&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;}&amp;lt;/math&amp;gt;&lt;/del&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{randomvariable|name=rn1(x,y)|graph=rn1.svg|caption=[[wikipedia:Probability mass function|Probability mass function]] of rn1(10,5).|distribution=[[Wikipedia:discrete uniform distribution|uniform]]|mean=(x-1)/2+y|stddev=sqrt&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(&lt;/ins&gt;(x^2-1)/12&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;)&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;rn1(x, y){{refsrc|hack.h|291}} 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&amp;lt;=rn1(x,y)&amp;lt;x+y).  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;rn1(x, y){{refsrc|hack.h|291}} 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&amp;lt;=rn1(x,y)&amp;lt;x+y).  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Train</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Rn1&amp;diff=79985&amp;oldid=prev</id>
		<title>Tjr: Text replace - &quot;&lt;ref&gt;[ \
]*{{[ \
]*[sS]ourcecode[ \
]*\|[ \
]*([a-zA-Z_][a-zA-Z0-9_]*\.[ch])[ \
]*\|[ \
]*([0-9][0-9]*)[ \
]*}}[ \
]*&lt;\/ref&gt;&quot; to &quot;{{refsrc|$1|$2}}&quot;</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Rn1&amp;diff=79985&amp;oldid=prev"/>
		<updated>2012-09-22T00:12:52Z</updated>

		<summary type="html">&lt;p&gt;Text replace - &amp;quot;&amp;lt;ref&amp;gt;[ \ ]*{{[ \ ]*[sS]ourcecode[ \ ]*\|[ \ ]*([a-zA-Z_][a-zA-Z0-9_]*\.[ch])[ \ ]*\|[ \ ]*([0-9][0-9]*)[ \ ]*}}[ \ ]*&amp;lt;\/ref&amp;gt;&amp;quot; to &amp;quot;{{refsrc|$1|$2}}&amp;quot;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 00:12, 22 September 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:rn1}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:rn1}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{randomvariable|name=rn1(x,y)|graph=rn1.svg|caption=[[wikipedia:Probability mass function|Probability mass function]] of rn1(10,5).|distribution=[[Wikipedia:discrete uniform distribution|uniform]]|mean=&amp;lt;math&amp;gt;(x-1)/2+y&amp;lt;/math&amp;gt;|stddev=&amp;lt;math&amp;gt;\sqrt{(x^2-1)/12}&amp;lt;/math&amp;gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{randomvariable|name=rn1(x,y)|graph=rn1.svg|caption=[[wikipedia:Probability mass function|Probability mass function]] of rn1(10,5).|distribution=[[Wikipedia:discrete uniform distribution|uniform]]|mean=&amp;lt;math&amp;gt;(x-1)/2+y&amp;lt;/math&amp;gt;|stddev=&amp;lt;math&amp;gt;\sqrt{(x^2-1)/12}&amp;lt;/math&amp;gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;rn1(x, y)&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;ref&amp;gt;&lt;/del&gt;{{&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;sourcecode&lt;/del&gt;|hack.h|291}}&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/ref&amp;gt; &lt;/del&gt;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&amp;lt;=rn1(x,y)&amp;lt;x+y).  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;rn1(x, y){{&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;refsrc&lt;/ins&gt;|hack.h|291}} 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&amp;lt;=rn1(x,y)&amp;lt;x+y).  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;See also [[rn2]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;See also [[rn2]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tjr</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Rn1&amp;diff=70687&amp;oldid=prev</id>
		<title>99.239.146.253: cat</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Rn1&amp;diff=70687&amp;oldid=prev"/>
		<updated>2011-05-29T21:07:26Z</updated>

		<summary type="html">&lt;p&gt;cat&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 21:07, 29 May 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot; &gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{stub}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{stub}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Annotations]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Random number functions]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Random number functions]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>99.239.146.253</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Rn1&amp;diff=67428&amp;oldid=prev</id>
		<title>Ray Chason: Category: Random number functions</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Rn1&amp;diff=67428&amp;oldid=prev"/>
		<updated>2011-02-01T23:51:01Z</updated>

		<summary type="html">&lt;p&gt;Category: Random number functions&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 23:51, 1 February 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot; &gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{stub}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{stub}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Annotations]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Annotations]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Random number functions]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ray Chason</name></author>
		
	</entry>
</feed>