mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
83 lines
2.2 KiB
HTML
83 lines
2.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<title>Generates integer uniformly distributed between LOW (inclusive) and HIGH (inclusive)</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.stats-rand-gen-iuniform" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">stats_rand_gen_iuniform</h1>
|
|
<p class="verinfo">(PECL stats >= 1.0.0)</p><p class="refpurpose"><span class="refname">stats_rand_gen_iuniform</span> — <span class="dc-title">Generates integer uniformly distributed between LOW (inclusive) and HIGH (inclusive)</span></p>
|
|
|
|
</div>
|
|
<div class="refsect1 description" id="refsect1-function.stats-rand-gen-iuniform-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>stats_rand_gen_iuniform</strong></span>
|
|
( <span class="methodparam"><span class="type">int</span> <code class="parameter">$low</code></span>
|
|
, <span class="methodparam"><span class="type">int</span> <code class="parameter">$high</code></span>
|
|
) : <span class="type">int</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
Returns a random integer from the discrete uniform distribution between <code class="parameter">low</code> (inclusive)
|
|
and <code class="parameter">high</code> (inclusive).
|
|
</p>
|
|
</div>
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.stats-rand-gen-iuniform-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">low</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The lower bound
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">high</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The upper bound
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.stats-rand-gen-iuniform-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
A random integer
|
|
</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div></div></div></body></html> |