<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://labviewwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ARand%2Fdoc</id>
	<title>Template:Rand/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://labviewwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ARand%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Template:Rand/doc&amp;action=history"/>
	<updated>2026-04-21T16:40:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Template:Rand/doc&amp;diff=2868&amp;oldid=prev</id>
		<title>Michael_Aivaliotis at 02:43, 7 October 2007</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Template:Rand/doc&amp;diff=2868&amp;oldid=prev"/>
		<updated>2007-10-07T02:43:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:43, 7 October 2007&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-l47&quot;&gt;Line 47:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 47:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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:Templates using ParserFunctions|{{PAGENAME}}]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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:Templates using ParserFunctions|{{PAGENAME}}]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;/includeonly&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;/includeonly&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&amp;lt;noinclude&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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:Template documentation]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&amp;lt;/noinclude&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Michael_Aivaliotis</name></author>
	</entry>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Template:Rand/doc&amp;diff=2710&amp;oldid=prev</id>
		<title>Michael_Aivaliotis: New page: &lt;noinclude&gt;:&#039;&#039;This page is the documentation of the Rand template.&#039;&#039;&lt;/noinclude&gt; This template generates a pseudo-random integer between 0 and &#039;&#039;count&#039;&#039;-1.  ; Usage&lt;nowik...</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Template:Rand/doc&amp;diff=2710&amp;oldid=prev"/>
		<updated>2007-10-06T08:12:09Z</updated>

		<summary type="html">&lt;p&gt;New page: &amp;lt;noinclude&amp;gt;:&amp;#039;&amp;#039;This page is the documentation of the &lt;a href=&quot;/wiki/Template:Rand&quot; title=&quot;Template:Rand&quot;&gt;Rand&lt;/a&gt; template.&amp;#039;&amp;#039;&amp;lt;/noinclude&amp;gt; This template generates a pseudo-random integer between 0 and &amp;#039;&amp;#039;count&amp;#039;&amp;#039;-1.  ; Usage&amp;lt;nowik...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;:&amp;#039;&amp;#039;This page is the documentation of the [[Template:Rand|Rand]] template.&amp;#039;&amp;#039;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
This template generates a pseudo-random integer between 0 and &amp;#039;&amp;#039;count&amp;#039;&amp;#039;-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;&amp;#039;&amp;#039;count&amp;#039;&amp;#039;&amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&amp;#039;&amp;#039;seed&amp;#039;&amp;#039;&amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&amp;#039;&amp;#039;prime&amp;#039;&amp;#039;&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 &amp;#039;&amp;#039;count&amp;#039;&amp;#039; is 100 (so by default, this template generates values between 0 and 99) and must be non-zero.&lt;br /&gt;
* The default &amp;#039;&amp;#039;seed&amp;#039;&amp;#039; is &amp;lt;nowiki&amp;gt;{{#time:z}}&amp;lt;/nowiki&amp;gt; and can be set to any other integer value (used to generate distinct values on the same page).&lt;br /&gt;
* The default &amp;#039;&amp;#039;prime&amp;#039;&amp;#039; 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;{{#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 &amp;#039;&amp;#039;seed&amp;#039;&amp;#039; linearly generates numbers that generate a linear sequence on the same page, with equal cyclic steps;&lt;br /&gt;
* Varying &amp;#039;&amp;#039;prime&amp;#039;&amp;#039; (provided that they are odd prime numbers) generates pseudo-random that have independant random distribution.&lt;br /&gt;
* Note that when &amp;#039;&amp;#039;count&amp;#039;&amp;#039; 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 &amp;#039;&amp;#039;seed&amp;#039;&amp;#039; or &amp;#039;&amp;#039;prime&amp;#039;&amp;#039;, unless half of the calls use an even &amp;#039;&amp;#039;seed&amp;#039;&amp;#039; and the others used an odd &amp;#039;&amp;#039;seed&amp;#039;&amp;#039;. However, later invokations 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 invokations of this template with the same parameters will generate the same ouput value, so it is possible to create multiple links related to the same article.&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Mathematical function templates|{{PAGENAME}}]]&lt;br /&gt;
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael_Aivaliotis</name></author>
	</entry>
</feed>