<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=MIST_random</id>
		<title>MIST random - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=MIST_random"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_random&amp;action=history"/>
		<updated>2026-04-25T00:54:08Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.hoggitworld.com/index.php?title=MIST_random&amp;diff=1050&amp;oldid=prev</id>
		<title>Grimes at 23:09, 13 April 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_random&amp;diff=1050&amp;oldid=prev"/>
				<updated>2018-04-13T23:09:27Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Mission Scripting&lt;br /&gt;
&lt;br /&gt;
|fName= mist.random|&lt;br /&gt;
&lt;br /&gt;
|vNum = Mist 3.3&lt;br /&gt;
&lt;br /&gt;
|desc= Returns a random numerical value based on the input variables. Matches input values of the math.random() function except this function does not support decimals.|&lt;br /&gt;
&lt;br /&gt;
|rtnType= number&lt;br /&gt;
&lt;br /&gt;
|reqType1= number/number&lt;br /&gt;
&lt;br /&gt;
|reqName1= low/high&lt;br /&gt;
&lt;br /&gt;
|reqType2= &lt;br /&gt;
&lt;br /&gt;
|reqName2= &lt;br /&gt;
&lt;br /&gt;
|reqType3= &lt;br /&gt;
&lt;br /&gt;
|reqName3= &lt;br /&gt;
&lt;br /&gt;
|reqType4= &lt;br /&gt;
&lt;br /&gt;
|reqName4= &lt;br /&gt;
&lt;br /&gt;
|reqType5= &lt;br /&gt;
&lt;br /&gt;
|reqName5= &lt;br /&gt;
&lt;br /&gt;
|optType1= number&lt;br /&gt;
&lt;br /&gt;
|optName1= high&lt;br /&gt;
&lt;br /&gt;
|optType2= &lt;br /&gt;
&lt;br /&gt;
|optName2= &lt;br /&gt;
&lt;br /&gt;
|optType3= &lt;br /&gt;
&lt;br /&gt;
|optName3= &lt;br /&gt;
&lt;br /&gt;
|optType4= &lt;br /&gt;
&lt;br /&gt;
|optName4= &lt;br /&gt;
&lt;br /&gt;
|optType5= &lt;br /&gt;
&lt;br /&gt;
|optName5= &lt;br /&gt;
&lt;br /&gt;
|vars=&lt;br /&gt;
&lt;br /&gt;
|varExamples= number low and high, any round number &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|rtnExamples= any non round number&lt;br /&gt;
&lt;br /&gt;
|example= &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  do&lt;br /&gt;
    local randChoice = mist.random(5)&lt;br /&gt;
    if randChoice == 1 then&lt;br /&gt;
     -- do whatever&lt;br /&gt;
    elseif randChoice == 2 then&lt;br /&gt;
     -- do whatever2&lt;br /&gt;
    elseif randChoice &amp;gt; 2 then&lt;br /&gt;
     -- do whatever3&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|funcs= {{ListOfMistGeneralPurposeFuncs}}&lt;br /&gt;
|notes= If the optional variable is not present then a random number will be returned between 1 and the required variable. &lt;br /&gt;
&lt;br /&gt;
This function has been created to act as a customized replacement of math.random, specifically for any random choice with less than 50 possibilities. &lt;br /&gt;
}}&lt;br /&gt;
[[Category: MIST|random]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>