<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3ARandnorm</id>
	<title>TI-BASIC:Randnorm - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3ARandnorm"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Randnorm&amp;action=history"/>
	<updated>2026-04-17T19:35:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Randnorm&amp;diff=681&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Randnorm&amp;diff=681&amp;oldid=prev"/>
		<updated>2016-02-24T18:13:17Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:TI-BASIC:Command&lt;br /&gt;
|picture=RANDNORM.GIF&lt;br /&gt;
|summary=Generates a random normally-distributed number with specified mean and standard deviation.&lt;br /&gt;
|syntax=randNorm(&amp;#039;&amp;#039;µ&amp;#039;&amp;#039;,&amp;#039;&amp;#039;σ&amp;#039;&amp;#039;,[&amp;#039;&amp;#039;n&amp;#039;&amp;#039;])&lt;br /&gt;
|location=Press:&lt;br /&gt;
# MATH to access the [[TI-BASIC:Math|Math]] menu.&lt;br /&gt;
# LEFT to access the PRB submenu.&lt;br /&gt;
# 6 to select randNorm(, or use arrows.&lt;br /&gt;
|compatibility=TI-83/84/+/SE&lt;br /&gt;
|size=2 bytes&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
randNorm(&amp;#039;&amp;#039;µ&amp;#039;&amp;#039;,&amp;#039;&amp;#039;σ&amp;#039;&amp;#039;) generates a normally-distributed pseudorandom number with [[TI-BASIC:Mean|Mean]] &amp;#039;&amp;#039;µ&amp;#039;&amp;#039; and [[TI-BASIC:Stddev|standard deviation]] &amp;#039;&amp;#039;σ&amp;#039;&amp;#039;. The result returned will most probably be within the range &amp;#039;&amp;#039;µ&amp;#039;&amp;#039;±3&amp;#039;&amp;#039;σ&amp;#039;&amp;#039;. randNorm(&amp;#039;&amp;#039;µ&amp;#039;&amp;#039;,&amp;#039;&amp;#039;σ&amp;#039;&amp;#039;,&amp;#039;&amp;#039;n&amp;#039;&amp;#039;) generates a list of &amp;#039;&amp;#039;n&amp;#039;&amp;#039; normally-distributed pseudorandom numbers with mean &amp;#039;&amp;#039;µ&amp;#039;&amp;#039; and standard deviation &amp;#039;&amp;#039;σ&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;seed&amp;#039;&amp;#039;→rand affects the output of randNorm(.&lt;br /&gt;
&lt;br /&gt;
 0→rand&lt;br /&gt;
      0&lt;br /&gt;
 randNorm(0,1)&lt;br /&gt;
      -1.585709623&lt;br /&gt;
 randNorm(0,1,3)&lt;br /&gt;
      {-1.330473604 1.05074514 -.0368606663}&lt;br /&gt;
&lt;br /&gt;
Although a theoretical normally distributed variable could take on any real value, numbers on a calculator have a limited precision, which leads to a maximum range of approximately &amp;#039;&amp;#039;µ&amp;#039;&amp;#039;±7.02&amp;#039;&amp;#039;σ&amp;#039;&amp;#039; for values of randNorm(.&lt;br /&gt;
&lt;br /&gt;
= Optimization =&lt;br /&gt;
&lt;br /&gt;
When the mean is 0 and the standard deviation 1, [[TI-BASIC:Invnorm|InvNorm(]]rand) and invNorm(rand(N)) save space over randNorm(0,1) and randNorm(0,1,N) respectively.&lt;br /&gt;
&lt;br /&gt;
= Formulas =&lt;br /&gt;
&lt;br /&gt;
The value of randNorm( for a given seed can be expressed in terms of [[TI-BASIC:Rand|Rand]]:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 randNorm(µ,σ)=µ-σinvNorm(rand&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is identical to the output of randNorm( in the sense that for the same seed, both expressions will generate the same random numbers.&lt;br /&gt;
&lt;br /&gt;
The following formula can be used to get a target interval where A and B are two real intervals.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 µ=(A+B)/2&lt;br /&gt;
 σ=(-A+B)/6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Related Commands =&lt;br /&gt;
&lt;br /&gt;
* [[TI-BASIC:Rand|Rand]]&lt;br /&gt;
* [[TI-BASIC:Randint|RandInt(]]&lt;br /&gt;
* [[TI-BASIC:Randbin|RandBin(]]&lt;br /&gt;
* [[TI-BASIC:Randm|RandM(]]&lt;br /&gt;
* [[TI-BASIC:Randintnorep|randIntNoRep(]][[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>