<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ka" lang="ka" dir="ltr">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    		<meta name="keywords" content="თარგი:Rand,Rand/doc,Template documentation" />
		<link rel="shortcut icon" href="/favicon.ico" />
		<link rel="search" type="application/opensearchdescription+xml" href="/w/opensearch_desc.php" title="ვიკიპედია (ქართული)" />
		<link rel="copyright" href="../../../COPYING.html" />
    <title>თარგი:Rand - ვიკიპედია</title>
    <style type="text/css">/*<![CDATA[*/ @import "../../../skins/htmldump/main.css"; /*]]>*/</style>
    <link rel="stylesheet" type="text/css" media="print" href="../../../skins/common/commonPrint.css" />
    <!--[if lt IE 5.5000]><style type="text/css">@import "../../../skins/monobook/IE50Fixes.css";</style><![endif]-->
    <!--[if IE 5.5000]><style type="text/css">@import "../../../skins/monobook/IE55Fixes.css";</style><![endif]-->
    <!--[if IE 6]><style type="text/css">@import "../../../skins/monobook/IE60Fixes.css";</style><![endif]-->
    <!--[if IE]><script type="text/javascript" src="../../../skins/common/IEFixes.js"></script>
    <meta http-equiv="imagetoolbar" content="no" /><![endif]-->
    <script type="text/javascript" src="../../../skins/common/wikibits.js"></script>
    <script type="text/javascript" src="../../../skins/htmldump/md5.js"></script>
    <script type="text/javascript" src="../../../skins/htmldump/utf8.js"></script>
    <script type="text/javascript" src="../../../skins/htmldump/lookup.js"></script>
    <script type="text/javascript" src="../../../raw/gen.js"></script>        <style type="text/css">/*<![CDATA[*/
@import "../../../raw/%E1%83%9B%E1%83%94%E1%83%93%E1%83%98%E1%83%90%E1%83%95%E1%83%98%E1%83%99%E1%83%98%7ECommon.css";
@import "../../../raw/%E1%83%9B%E1%83%94%E1%83%93%E1%83%98%E1%83%90%E1%83%95%E1%83%98%E1%83%99%E1%83%98%7EMonobook.css";
@import "../../../raw/gen.css";
/*]]>*/</style>          </head>
  <body
    class="ns-10">
    <div id="globalWrapper">
      <div id="column-content">
	<div id="content">
	  <a name="top" id="contentTop"></a>
	        <h1 class="firstHeading">თარგი:Rand</h1>
	  <div id="bodyContent">
	    <h3 id="siteSub">ვიკიპედიიდან</h3>
	    <div id="contentSub"></div>
	    	    	    <!-- start content -->
	    <dl>
<dd><i>The documentation of this template is transcluded from <a href="../../../r/a/n/%E1%83%97%E1%83%90%E1%83%A0%E1%83%92%E1%83%98%7ERand_doc_df6f.html" title="თარგი:Rand/doc">Template:Rand/doc</a>.</i>თარგი:Template documentation</dd>
</dl>
<p>This template generates a pseudo-random integer between 0 and <i>count</i>-1.</p>
<dl>
<dt>Usage:</dt>
</dl>
<ul>
<li><tt>{{Rand|</tt><i>count</i><tt>|</tt><i>seed</i><tt>|</tt><i>prime</i><tt>}}</tt></li>
<li>All parameters are optional and have default values. They must be integers.</li>
<li>The default <i>count</i> is 100 (so by default, this template generates values between 0 and 99) and must be non-zero.</li>
<li>The default <i>seed</i> is 7 and can be set to any other integer value (used to generate distinct values on the same page).</li>
<li>The default <i>prime</i> is 67 and should be a prime number above 17 (used to generate distinct values on the same page).</li>
</ul>
<dl>
<dt>Examples generating numbers between 0 and 999:</dt>
</dl>
<ul>
<li><tt>{{Rand|1000}}</tt> = 10</li>
<li><tt>{{Rand|1000|7|67}}</tt> = 10 (same as above)</li>
<li><tt>{{Rand|1000|7|61}}</tt> = 252 (this and others should all be different)</li>
<li><tt>{{Rand|1000|6}}</tt> = 247</li>
<li><tt>{{Rand|1000|5}}</tt> = 484</li>
<li><tt>{{Rand|1000|4}}</tt> = 721</li>
<li><tt>{{Rand|1000|3}}</tt> = 958</li>
<li><tt>{{Rand|1000|2}}</tt> = 195</li>
<li><tt>{{Rand|1000|1}}</tt> = 432</li>
<li><tt>{{Rand|1000|0}}</tt> = 669</li>
<li><tt>{{Rand|1000|1|17}}</tt> = 169 (varying the prime number)</li>
<li><tt>{{Rand|1000|1|19}}</tt> = 237</li>
<li><tt>{{Rand|1000|1|23}}</tt> = 789</li>
<li><tt>{{Rand|1000|1|29}}</tt> = 297</li>
<li><tt>{{Rand|1000|1|31}}</tt> = 685</li>
<li><tt>{{Rand|1000|1|37}}</tt> = 569</li>
<li><tt>{{Rand|1000|1|41}}</tt> = 185</li>
<li><tt>{{Rand|1000|1|43}}</tt> = 629</li>
<li><tt>{{Rand|1000|1|47}}</tt> = 669</li>
<li><tt>{{Rand|1000|1|51}}</tt> = 85</li>
<li><tt>{{Rand|1000|1|53}}</tt> = 249</li>
<li><tt>{{Rand|1000|1|59}}</tt> = 477</li>
<li><tt>{{Rand|1000|1|61}}</tt> = 385</li>
<li><tt>{{Rand|1000|1|67}}</tt> = 669</li>
<li><tt>{{Rand|1000|1|71}}</tt> = 85</li>
<li><tt>{{Rand|1000|1|73}}</tt> = 889</li>
<li><tt>{{Rand|1000|1|79}}</tt> = 597</li>
</ul>
<dl>
<dt>Note:</dt>
</dl>
<ul>
<li>Varying <i>seed</i> linearily generates numbers that generates a linear sequence on the same page, with equal cyclic steps;</li>
<li>Varying <i>prime</i> (provided that they are odd prime numbers) generates pseudo-random that have independant random distribution.</li>
<li>Note that when <i>count</i> 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 <i>seed</i> or <i>prime</i>, unless half of the calls use an even <i>seed</i> and the others used an odd <i>seed</i>. 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).</li>
<li>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.</li>
</ul>

<!-- 
Pre-expand include size: 26325 bytes
Post-expand include size: 5488 bytes
Template argument size: 10881 bytes
Maximum: 2048000 bytes
-->
<div class="printfooter">
Retrieved from "<a href="http://ka.wikipedia.org../../../r/a/n/%E1%83%97%E1%83%90%E1%83%A0%E1%83%92%E1%83%98%7ERand_ffd6.html">http://ka.wikipedia.org../../../r/a/n/%E1%83%97%E1%83%90%E1%83%A0%E1%83%92%E1%83%98%7ERand_ffd6.html</a>"</div>
	    <div id="catlinks"><p class='catlinks'><a href="../../../c/a/t/%E1%83%A1%E1%83%9E%E1%83%94%E1%83%AA%E1%83%98%E1%83%90%E1%83%9A%E1%83%A3%E1%83%A0%E1%83%98%7ECategories_95af.html" title="სპეციალური:Categories">კატეგორიები</a>: <span dir='ltr'><a href="../../../%E1%83%9B/%E1%83%90/%E1%83%97/%E1%83%99%E1%83%90%E1%83%A2%E1%83%94%E1%83%92%E1%83%9D%E1%83%A0%E1%83%98%E1%83%90%7E%E1%83%9B%E1%83%90%E1%83%97%E1%83%94%E1%83%9B%E1%83%90%E1%83%A2%E1%83%98%E1%83%99%E1%83%A3%E1%83%A0%E1%83%98_%E1%83%97%E1%83%90%E1%83%A0%E1%83%92%E1%83%94%E1%83%91%E1%83%98.html" title="კატეგორია:მათემატიკური თარგები">მათემატიკური თარგები</a></span> | <span dir='ltr'><a href="../../../t/e/m/%E1%83%99%E1%83%90%E1%83%A2%E1%83%94%E1%83%92%E1%83%9D%E1%83%A0%E1%83%98%E1%83%90%7ETemplates_using_ParserFunctions_2b45.html" title="კატეგორია:Templates using ParserFunctions">Templates using ParserFunctions</a></span></p></div>	    <!-- end content -->
	    <div class="visualClear"></div>
	  </div>
	</div>
      </div>
      <div id="column-one">
	<div id="p-cactions" class="portlet">
	  <h5>Views</h5>
	  <ul>
	    <li id="ca-nstab-template"
	       class="selected"	       ><a href="../../../r/a/n/%E1%83%97%E1%83%90%E1%83%A0%E1%83%92%E1%83%98%7ERand_ffd6.html">თარგი</a></li><li id="ca-talk"
	       class="new"	       ><a href="../../../r/a/n/%E1%83%97%E1%83%90%E1%83%A0%E1%83%92%E1%83%98_%E1%83%92%E1%83%90%E1%83%9C%E1%83%AE%E1%83%98%E1%83%9A%E1%83%95%E1%83%90%7ERand_e959.html">განხილვა</a></li><li id="ca-current"
	       	       ><a href="http://ka.wikipedia.org/wiki/%E1%83%97%E1%83%90%E1%83%A0%E1%83%92%E1%83%98:Rand">მიმდინარე შესწორება</a></li>	  </ul>
	</div>
	<div class="portlet" id="p-logo">
	  <a style="background-image: url(../../../upload/b/bc/Wiki.png);"
	    href="../../../index.html"
	    title="მთავარი გვერდი"></a>
	</div>
	<script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
		<div class='portlet' id='p-navigation'>
	  <h5>ნავიგაცია</h5>
	  <div class='pBody'>
	    <ul>
	    	      <li id="n-mainpage"><a href="../../../index.html">მთავარი გვერდი</a></li>
	     	      <li id="n-თემატური-ძიება"><a href="../../../%E1%83%97/%E1%83%94/%E1%83%9B/%E1%83%95%E1%83%98%E1%83%99%E1%83%98%E1%83%9E%E1%83%94%E1%83%93%E1%83%98%E1%83%90%7E%E1%83%97%E1%83%94%E1%83%9B%E1%83%90%E1%83%A2%E1%83%A3%E1%83%A0%E1%83%98_%E1%83%A1%E1%83%90%E1%83%AB%E1%83%98%E1%83%94%E1%83%91%E1%83%94%E1%83%9A%E1%83%98.html">თემატური ძიება</a></li>
	     	      <li id="n-რჩეული-სტატიები"><a href="../../../%E1%83%A0/%E1%83%A9/%E1%83%94/%E1%83%95%E1%83%98%E1%83%99%E1%83%98%E1%83%9E%E1%83%94%E1%83%93%E1%83%98%E1%83%90%7E%E1%83%A0%E1%83%A9%E1%83%94%E1%83%A3%E1%83%9A%E1%83%98_%E1%83%A1%E1%83%A2%E1%83%90%E1%83%A2%E1%83%98%E1%83%94%E1%83%91%E1%83%98.html">რჩეული სტატიები</a></li>
	     	      <li id="n-newpages"><a href="../../../n/e/w/%E1%83%A1%E1%83%9E%E1%83%94%E1%83%AA%E1%83%98%E1%83%90%E1%83%9A%E1%83%A3%E1%83%A0%E1%83%98%7ENewpages_0a34.html">ახალი გვერდები</a></li>
	     	    </ul>
	  </div>
	</div>
		<div class='portlet' id='p-participation'>
	  <h5>მონაწილეობა</h5>
	  <div class='pBody'>
	    <ul>
	    	      <li id="n-შესავალი"><a href="../../../%E1%83%A8/%E1%83%94/%E1%83%A1/%E1%83%95%E1%83%98%E1%83%99%E1%83%98%E1%83%9E%E1%83%94%E1%83%93%E1%83%98%E1%83%90%7E%E1%83%A8%E1%83%94%E1%83%A1%E1%83%90%E1%83%95%E1%83%90%E1%83%9A%E1%83%98.html">შესავალი</a></li>
	     	      <li id="n-ინფორმაცია"><a href="../../../%E1%83%A1/%E1%83%90/%E1%83%96/%E1%83%95%E1%83%98%E1%83%99%E1%83%98%E1%83%9E%E1%83%94%E1%83%93%E1%83%98%E1%83%90%7E%E1%83%A1%E1%83%90%E1%83%96%E1%83%9D%E1%83%92%E1%83%90%E1%83%93%E1%83%9D%E1%83%94%E1%83%91%E1%83%98%E1%83%A1_%E1%83%92%E1%83%95%E1%83%94%E1%83%A0%E1%83%93%E1%83%94%E1%83%91%E1%83%98.html">ინფორმაცია</a></li>
	     	      <li id="n-help"><a href="../../../%E1%83%93/%E1%83%90/%E1%83%AE/%E1%83%95%E1%83%98%E1%83%99%E1%83%98%E1%83%9E%E1%83%94%E1%83%93%E1%83%98%E1%83%90%7E%E1%83%93%E1%83%90%E1%83%AE%E1%83%9B%E1%83%90%E1%83%A0%E1%83%94%E1%83%91%E1%83%90.html">დახმარება</a></li>
	     	      <li id="n-ფორუმი"><a href="../../../%E1%83%A7/%E1%83%90/%E1%83%95/%E1%83%95%E1%83%98%E1%83%99%E1%83%98%E1%83%9E%E1%83%94%E1%83%93%E1%83%98%E1%83%90%7E%E1%83%A7%E1%83%90%E1%83%95%E1%83%90%E1%83%AE%E1%83%90%E1%83%9C%E1%83%90.html">ფორუმი</a></li>
	     	      <li id="n-sitesupport"><a href="../../../%E1%83%A8/%E1%83%94/%E1%83%AC/%E1%83%95%E1%83%98%E1%83%99%E1%83%98%E1%83%9E%E1%83%94%E1%83%93%E1%83%98%E1%83%90%7E%E1%83%A8%E1%83%94%E1%83%AC%E1%83%98%E1%83%A0%E1%83%A3%E1%83%9A%E1%83%9D%E1%83%91%E1%83%94%E1%83%91%E1%83%98.html">შეწირულობები</a></li>
	     	    </ul>
	  </div>
	</div>
		<div id="p-search" class="portlet">
	  <h5><label for="searchInput">ძიება</label></h5>
	  <div id="searchBody" class="pBody">
	    <form action="javascript:goToStatic(3)" id="searchform"><div>
	      <input id="searchInput" name="search" type="text"
	        accesskey="f" value="" />
	      <input type='submit' name="go" class="searchButton" id="searchGoButton"
	        value="სტატია" />
	    </div></form>
	  </div>
	</div>
	<div id="p-lang" class="portlet">
	  <h5>სხვა ენებზე</h5>
	  <div class="pBody">
	    <ul>
	      	      <li>
	      <a href="../../../../fr/r/a/n/Mod%C3%A8le%7ERand_0667.html">Français</a>
	      </li>
	      	    </ul>
	  </div>
	</div>
	      </div><!-- end of the left (by default at least) column -->
      <div class="visualClear"></div>
      <div id="footer">
    <div id="f-poweredbyico"><a href="http://www.mediawiki.org/"><img src="../../../skins/common/images/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" /></a></div>	<div id="f-copyrightico"><a href="http://wikimediafoundation.org/"><img src="../../../images/wikimedia-button.png" border="0" alt="Wikimedia Foundation"/></a></div>	<ul id="f-list">
	  	  	  <li id="f-credits">ეს გვერდი ბოლოს შეიცვალა 19:56, 22 დეკემბერი 2006  ვიკიპედია მომხმარებელი <a href="../../../%E1%83%92/%E1%83%98/%E1%83%9D/%E1%83%9B%E1%83%9D%E1%83%9B%E1%83%AE%E1%83%9B%E1%83%90%E1%83%A0%E1%83%94%E1%83%91%E1%83%94%E1%83%9A%E1%83%98%7E%E1%83%92%E1%83%98%E1%83%9D%E1%83%A0%E1%83%92%E1%83%98_%E1%83%9B%E1%83%90%E1%83%A0%E1%83%A3%E1%83%90%E1%83%A8%E1%83%95%E1%83%98%E1%83%9A%E1%83%98.html" title="მომხმარებელი:გიორგი მარუაშვილი">გიორგი მარუაშვილი</a>-ით. </li>	  <li id="f-copyright">შინაარსი წარმოდგენილია <a class='internal' href="/wiki/GFDL">GFDL</a> ლიცენზიის თანახმად.<br />ვიკიპედია<sup>®</sup> კორპ. ფონდი ვიკიმედიის რეგისტრირებული საფირმო ნიშანია.<br /></li>	  <li id="f-about"><a href="../../../%E1%83%A8/%E1%83%94/%E1%83%A1/%E1%83%95%E1%83%98%E1%83%99%E1%83%98%E1%83%9E%E1%83%94%E1%83%93%E1%83%98%E1%83%90%7E%E1%83%A8%E1%83%94%E1%83%A1%E1%83%90%E1%83%AE%E1%83%94%E1%83%91.html" title="ვიკიპედია:შესახებ">ვიკიპედიის შესახებ</a></li>	  <li id="f-disclaimer"><a href="../../../%E1%83%9E/%E1%83%90/%E1%83%A1/%E1%83%9E%E1%83%A0%E1%83%9D%E1%83%94%E1%83%A5%E1%83%A2%E1%83%98%7E%E1%83%9E%E1%83%90%E1%83%A1%E1%83%A3%E1%83%AE%E1%83%98%E1%83%A1%E1%83%9B%E1%83%92%E1%83%94%E1%83%91%E1%83%9A%E1%83%9D%E1%83%91%E1%83%98%E1%83%A1_%E1%83%A3%E1%83%90%E1%83%A0%E1%83%A7%E1%83%9D%E1%83%A4%E1%83%90.html" title="პროექტი:პასუხისმგებლობის უარყოფა">პასუხისმგებლობის უარყოფა</a></li>	  	</ul>
      </div>
    </div>
  </body>
</html>
