<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.random-randomizer.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'random-randomizer.nextint.php',
    1 => 'Random\\Randomizer::nextInt',
    2 => 'Get a positive integer',
  ),
  'up' => 
  array (
    0 => 'class.random-randomizer.php',
    1 => 'Random\\Randomizer',
  ),
  'prev' => 
  array (
    0 => 'random-randomizer.nextfloat.php',
    1 => 'Random\\Randomizer::nextFloat',
  ),
  'next' => 
  array (
    0 => 'random-randomizer.pickarraykeys.php',
    1 => 'Random\\Randomizer::pickArrayKeys',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/random/random/randomizer/nextint.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="random-randomizer.nextint" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Random\Randomizer::nextInt</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.2.0)</p><p class="refpurpose"><span class="refname">Random\Randomizer::nextInt</span> &mdash; <span class="dc-title">Get a positive integer</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-random-randomizer.nextint-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Random\Randomizer::nextInt</strong></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">

  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-random-randomizer.nextint-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">Bu işlevin bağımsız değişkeni yoktur.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-random-randomizer.nextint-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
    A positive integer between 0 and a maximum value depending on the number of bytes
    returned from <span class="methodname"><a href="random-engine.generate.php" class="methodname">Random\Engine::generate()</a></span>.
    The exact maximum can be calculated as 2<sup class="superscript">$engine_bytes * 8 - 1</sup> - 1.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-random-randomizer.nextint-errors">
  <h3 class="title">Hatalar/İstisnalar</h3>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
      To avoid inconsistencies, 32 bit PHP will throw <span class="classname"><a href="class.random-randomexception.php" class="classname">Random\RandomException</a></span>
      if the output size of <span class="methodname"><a href="random-engine.generate.php" class="methodname">Random\Engine::generate()</a></span> exceeds 32 bits,
      as the selected integer cannot be returned losslessly.
      This affects the native 64 bit engines <span class="classname"><a href="class.random-engine-pcgoneseq128xslrr64.php" class="classname">Random\Engine\PcgOneseq128XslRr64</a></span> and
      <span class="classname"><a href="class.random-engine-xoshiro256starstar.php" class="classname">Random\Engine\Xoshiro256StarStar</a></span>. Any userland engine
      returning more than 4 bytes of randomness is also affected.
    </span>
   </li>
   
 <li class="listitem">
  <span class="simpara">
   İlgili <a href="class.random-randomizer.php#random-randomizer.props.engine" class="link"><code class="literal">Random\Randomizer::$engine</code></a>
   motorunun <span class="methodname"><a href="random-engine.generate.php" class="methodname">Random\Engine::generate()</a></span> yöntemi
   tarafından yavrulanan <span class="classname"><a href="class.throwable.php" class="classname">Throwable</a></span> nesneleri.
  </span>
 </li>

  </ul>
 </div>


 <div class="refsect1 examples" id="refsect1-random-randomizer.nextint-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="example-1">
   <p><strong>Örnek 1 <span class="function"><strong>Random\Randomizer::nextInt()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$r </span><span style="color: #007700">= new </span><span style="color: #0000BB">\Random\Randomizer</span><span style="color: #007700">();<br /><br /></span><span style="color: #FF8000">// Random "next" integer:<br /></span><span style="color: #007700">echo </span><span style="color: #0000BB">$r</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">nextInt</span><span style="color: #007700">(), </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>
Yukarıdaki örnek şuna benzer bir çıktı üretir:</p></div>
   <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">8041689838856078718</pre>
</div>
   </div>
  </div>
 </div>



</div><?php manual_footer($setup); ?>