<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.povray.org/content?action=history&amp;feed=atom&amp;title=Reference%3ARand.inc</id>
	<title>Reference:Rand.inc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.povray.org/content?action=history&amp;feed=atom&amp;title=Reference%3ARand.inc"/>
	<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Rand.inc&amp;action=history"/>
	<updated>2026-04-06T16:31:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.povray.org/content?title=Reference:Rand.inc&amp;diff=7008&amp;oldid=prev</id>
		<title>Jholsenback: 1 revision: Reference Migration Initial Load</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Rand.inc&amp;diff=7008&amp;oldid=prev"/>
		<updated>2012-03-15T19:08:42Z</updated>

		<summary type="html">&lt;p&gt;1 revision: Reference Migration Initial Load&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:08, 15 March 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Jholsenback</name></author>
	</entry>
	<entry>
		<id>https://wiki.povray.org/content?title=Reference:Rand.inc&amp;diff=7007&amp;oldid=prev</id>
		<title>Jholsenback: 1 revision: Initial Load (TF)</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=Reference:Rand.inc&amp;diff=7007&amp;oldid=prev"/>
		<updated>2012-03-11T22:31:21Z</updated>

		<summary type="html">&lt;p&gt;1 revision: Initial Load (TF)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Include Files]]&lt;br /&gt;
&amp;lt;p&amp;gt;A collection of macros for generating random numbers, as well as 4 predefined random number streams: &amp;lt;code&amp;gt;RdmA, RdmB, RdmC,&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;RdmD&amp;lt;/code&amp;gt;. There are macros for creating random numbers in a flat distribution (all numbers equally likely) in various ranges, and a variety of other distributions.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Flat Distributions==&lt;br /&gt;
{{#indexentry:SRand}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;SRand(Stream)&amp;lt;/code&amp;gt;: &amp;lt;em&amp;gt;Signed rand()&amp;lt;/em&amp;gt;, returns random numbers in the range [-1, 1].&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:RRand}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;RRand(Min, Max, Stream)&amp;lt;/code&amp;gt;: Returns random numbers in the range [Min, Max].&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Min&amp;lt;/code&amp;gt; = The lower end of the output range.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Max&amp;lt;/code&amp;gt; = The upper end of the output range.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:VRand}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;VRand(Stream)&amp;lt;/code&amp;gt;: Returns random vectors in a box from &amp;amp;lt; 0, 0, 0&amp;amp;gt; to &amp;amp;lt; 1, 1, 1&amp;amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:VRand_In_Box}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;VRand_In_Box(PtA, PtB, Stream)&amp;lt;/code&amp;gt;: Like VRand(), this macro returns a random vector in a box, but this version lets you specify the two corners of the box.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;PtA&amp;lt;/code&amp;gt; = Lower-left-bottom corner of box.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;PtB&amp;lt;/code&amp;gt; = Upper-right-top corner of box.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:VRand_In_Sphere}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;VRand_In_Sphere(Stream)&amp;lt;/code&amp;gt;: Returns a random vector in a unit-radius sphere located at the origin.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:VRand_On_Sphere}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;VRand_On_Sphere(Stream)&amp;lt;/code&amp;gt;: Returns a random vector on the surface of a unit-radius sphere located at the origin.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:VRand_In_Obj}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;VRand_In_Obj(Object, Stream)&amp;lt;/code&amp;gt;: This macro takes a solid object and returns a random point that is inside it. It does this by randomly sampling the bounding box of the object, and can be quite slow if the object occupies a small percentage of the volume of its bounding box (because it will take more attempts to find a point inside the object). This macro is best used on finite, solid objects (non-solid objects, such as meshes and bezier patches, do not have a defined &amp;lt;em&amp;gt;inside&amp;lt;/em&amp;gt;, and will not work).&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Object&amp;lt;/code&amp;gt; = The object the macro chooses the points from.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Other Distributions==&lt;br /&gt;
&lt;br /&gt;
===Continuous Symmetric Distributions===&lt;br /&gt;
{{#indexentry:Rand_Cauchy}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Cauchy(Mu, Sigma, Stream)&amp;lt;/code&amp;gt;: Cauchy distribution.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Mu&amp;lt;/code&amp;gt; = Mean.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Sigma&amp;lt;/code&amp;gt; = Standard deviation.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:Rand_Student}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Student(N, Stream)&amp;lt;/code&amp;gt;: Student's distribution.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;N&amp;lt;/code&amp;gt; = degrees of freedom.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:Rand_Normal}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Normal(Mu, Sigma, Stream)&amp;lt;/code&amp;gt;: Normal distribution.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Mu&amp;lt;/code&amp;gt; = Mean.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Sigma&amp;lt;/code&amp;gt; = Standard deviation.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:Rand_Gauss}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Gauss(Mu, Sigma, Stream)&amp;lt;/code&amp;gt;: Gaussian distribution. Like Rand_Normal(), but a bit faster.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Mu&amp;lt;/code&amp;gt; = Mean.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Sigma&amp;lt;/code&amp;gt; = Standard deviation.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Continuous Skewed Distributions===&lt;br /&gt;
{{#indexentry:Rand_Spline}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Spline(Spline, Stream)&amp;lt;/code&amp;gt;: This macro takes a spline describing the desired distribution. The T value of the spline is the output value, and the .y value its chance of occuring.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Spline&amp;lt;/code&amp;gt; = A spline determining the distribution.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:Rand_Gamma}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Gamma(Alpha, Beta, Stream)&amp;lt;/code&amp;gt;: Gamma distribution.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Alpha&amp;lt;/code&amp;gt; = Shape parameter &amp;amp;gt; 0.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Beta&amp;lt;/code&amp;gt; = Scale parameter &amp;amp;gt; 0.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:Rand_Beta}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Beta(Alpha, Beta, Stream)&amp;lt;/code&amp;gt;: Beta variate.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Alpha&amp;lt;/code&amp;gt; = Shape Gamma1.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Beta&amp;lt;/code&amp;gt; = Scale Gamma2.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:Rand_Chi_Square}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Chi_Square(N, Stream)&amp;lt;/code&amp;gt;: Chi Square random variate.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;N&amp;lt;/code&amp;gt; = Degrees of freedom (integer).&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:Rand_F_Dist}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_F_Dist(N, M, Stream)&amp;lt;/code&amp;gt;: F-distribution.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;N, M&amp;lt;/code&amp;gt; = Degrees of freedom.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:Rand_Tri}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Tri(Min, Max, Mode, Stream)&amp;lt;/code&amp;gt;: Triangular distribution &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Min, Max, Mode&amp;lt;/code&amp;gt;: Min &amp;amp;lt; Mode &amp;amp;lt; Max.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:Rand_Erlang}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Erlang(Mu, K, Stream)&amp;lt;/code&amp;gt;: Erlang variate.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Mu&amp;lt;/code&amp;gt; = Mean &amp;amp;gt;= 0.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;K&amp;lt;/code&amp;gt; = Number of exponential samples.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:Rand_Exp}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Exp(Lambda, Stream)&amp;lt;/code&amp;gt;: Exponential distribution.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Lambda&amp;lt;/code&amp;gt; = rate = 1/mean.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:Rand_Lognormal}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Lognormal(Mu, Sigma, Stream)&amp;lt;/code&amp;gt;: Lognormal distribution.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Mu&amp;lt;/code&amp;gt; = Mean.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Sigma&amp;lt;/code&amp;gt; = Standard deviation.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:Rand_Pareto}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Pareto(Alpha, Stream)&amp;lt;/code&amp;gt;: Pareto distribution.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Alpha&amp;lt;/code&amp;gt; = ?&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:Rand_Weibull}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Weibull(Alpha, Beta, Stream)&amp;lt;/code&amp;gt;: Weibull distribution.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Alpha&amp;lt;/code&amp;gt; = ?&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Beta&amp;lt;/code&amp;gt; = ?&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Discrete Distributions ===&lt;br /&gt;
{{#indexentry:Rand_Bernoulli}}&lt;br /&gt;
{{#indexentry:Prob}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Bernoulli(P, Stream)&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Prob(P, Stream)&amp;lt;/code&amp;gt;: Bernoulli distribution. Output is true with probability equal to the value of P and false with a probability of 1 - P.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt; = probability range (0-1).&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:Rand_Binomial}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Binomial(N, P, Stream)&amp;lt;/code&amp;gt;: Binomial distribution.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;N&amp;lt;/code&amp;gt; = Number of trials.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt; = Probability (0-1)&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:Rand_Geo}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Geo(P, Stream)&amp;lt;/code&amp;gt;: Geometric distribution.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt; = Probability (0-1).&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
{{#indexentry:Rand_Poisson}}&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;Rand_Poisson(Mu, Stream)&amp;lt;/code&amp;gt;: Poisson distribution.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Parameters:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Mu&amp;lt;/code&amp;gt; = Mean.&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;Stream&amp;lt;/code&amp;gt; = Random number stream.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jholsenback</name></author>
	</entry>
</feed>