<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.explainxkcd.com/wiki/index.php?action=history&amp;feed=atom&amp;title=User%3A17jiangz1%2FRand</id>
		<title>User:17jiangz1/Rand - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://www.explainxkcd.com/wiki/index.php?action=history&amp;feed=atom&amp;title=User%3A17jiangz1%2FRand"/>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=User:17jiangz1/Rand&amp;action=history"/>
		<updated>2026-04-18T21:52:09Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=User:17jiangz1/Rand&amp;diff=92280&amp;oldid=prev</id>
		<title>17jiangz1 at 08:58, 4 May 2015</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=User:17jiangz1/Rand&amp;diff=92280&amp;oldid=prev"/>
				<updated>2015-05-04T08:58:38Z</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 style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 08:58, 4 May 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;color:black; 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;&amp;lt;includeonly&amp;gt;{{Mod|(({{#time:U}}+({{{2|{{#time:z}}}}}))*({{{3|67}}})+({{NUMBEROFARTICLES:R}} mod ({{{3|67}}})))|{{{1|100}}}}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;lt;includeonly&amp;gt;{{&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;:User:17jiangz1/&lt;/ins&gt;Mod|(({{#time:U}}+({{{2|{{#time:z}}}}}))*({{{3|67}}})+({{NUMBEROFARTICLES:R}} mod ({{{3|67}}})))|{{{1|100}}}}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;From Wikipedia&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;From Wikipedia&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>17jiangz1</name></author>	</entry>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=User:17jiangz1/Rand&amp;diff=92279&amp;oldid=prev</id>
		<title>17jiangz1: Created page with &quot;&lt;includeonly&gt;{{Mod|(({{#time:U}}+({{{2|{{#time:z}}}}}))*({{{3|67}}})+({{NUMBEROFARTICLES:R}} mod ({{{3|67}}})))|{{{1|100}}}}}&lt;/includeonly&gt;&lt;noinclude&gt; From Wikipedia  This tem...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=User:17jiangz1/Rand&amp;diff=92279&amp;oldid=prev"/>
				<updated>2015-05-04T08:53:00Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;includeonly&amp;gt;{{Mod|(({{#time:U}}+({{{2|{{#time:z}}}}}))*({{{3|67}}})+({{NUMBEROFARTICLES:R}} mod ({{{3|67}}})))|{{{1|100}}}}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt; From Wikipedia  This tem...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;{{Mod|(({{#time:U}}+({{{2|{{#time:z}}}}}))*({{{3|67}}})+({{NUMBEROFARTICLES:R}} mod ({{{3|67}}})))|{{{1|100}}}}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
From Wikipedia&lt;br /&gt;
&lt;br /&gt;
This template generates a [[pseudo-random]] integer between 0 and ''count''-1.&lt;br /&gt;
&lt;br /&gt;
; Usage&amp;lt;nowiki&amp;gt;:&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Rand&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;''count''&amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;''seed''&amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;''prime''&amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
* All parameters are optional and have default values. They must be integers.&lt;br /&gt;
* The default ''count'' is 100 (so by default, this template generates values between 0 and 99) and must be non-zero.&lt;br /&gt;
* The default ''seed'' is &amp;lt;nowiki&amp;gt;{{#time:z}}&amp;lt;/nowiki&amp;gt; (currently {{#time:z}}, i.e. the current day number in the year, at the time this page was last saved or purged from the cache) and can be set to any other integer value (used to generate distinct values on the same page).&lt;br /&gt;
* The default ''prime'' is 67 and should be a [[prime number]] above 17 (used to generate distinct values on the same page).&lt;br /&gt;
&lt;br /&gt;
; Examples generating numbers between 0 and 999&amp;lt;nowiki&amp;gt;:&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000}} (same day, same output)&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|&amp;lt;/nowiki&amp;gt;{{#time:z}}&amp;lt;nowiki&amp;gt;|67}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|{{#time:z}}|67}} (same as above)&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|&amp;lt;/nowiki&amp;gt;{{#time:z}}&amp;lt;nowiki&amp;gt;|61}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|{{#time:z}}|61}} (this and others should all be different)&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|6}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|6}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|5}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|5}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|4}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|4}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|3}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|3}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|2}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|2}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|1}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|0}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1|17}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0|17}} (varying the prime number)&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1|19}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0|19}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1|23}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0|23}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1|29}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0|29}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1|31}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0|31}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1|37}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0|37}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1|41}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0|41}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1|43}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0|43}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1|47}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0|47}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1|51}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0|51}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1|53}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0|53}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1|59}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0|59}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1|61}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0|61}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1|67}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0|67}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1|71}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0|71}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1|73}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0|73}}&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Rand|1000|1|79}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; = {{Rand|1000|0|79}}&lt;br /&gt;
&lt;br /&gt;
; Note&amp;lt;nowiki&amp;gt;:&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* Varying ''seed'' linearly generates numbers that generate a linear sequence on the same page, with equal cyclic steps;&lt;br /&gt;
* Varying ''prime'' (provided that they are odd prime numbers) generates pseudo-random that have independent random distribution.&lt;br /&gt;
* Note that when ''count'' is even (such as 100 by default, or 1000 in the examples above), the generated numbers (on the same page) are all odd or all even when you are varying the ''seed'' or ''prime'', unless half of the calls use an even ''seed'' and the others used an odd ''seed''. However, later invocations will still alternate odd and even numbers on output (this problem only occurs on the same page where multiple random numbers are invoked).&lt;br /&gt;
* On the same page, multiple invocations of this template with the same parameters will generate the same output value, so it is possible to create multiple links related to the same article.&amp;lt;!-- Please put all metadata in documentation page [[Template:Rand/doc]] --&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>17jiangz1</name></author>	</entry>

	</feed>