File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
reference/random/functions Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: 826073522514072830b63bee2b6135dc675ea45d Maintainer: hirokawa Status: ready -->
3+ <!-- EN-Revision: bf672f5f2402ee78264a130c52defeed37fe44bf Maintainer: hirokawa Status: ready -->
44<!-- CREDITS: takagi,mumumu -->
55<refentry xml : id =" function.rand" xmlns =" http://docbook.org/ns/docbook" >
66 <refnamediv >
2222 オプションの引数
2323 <parameter >min</parameter >,<parameter >max</parameter >
2424 を省略してコールした場合、<function >rand</function > は 0 と
25- <function >getrandmax</function > の間の擬似乱数(整数)を返します。
25+ <function >getrandmax</function > の間の擬似乱数(整数)を返します。
2626 例えば、5 から 15 まで(両端を含む)の乱数を得たい場合、
2727 <literal >rand(5, 15)</literal > とします。
2828 </simpara >
2929 &caution.cryptographically-insecure;
3030 <note >
3131 <simpara >
32- (Windows のような)いくつかのプラットフォームでは、< function >getrandmax</ function >
33- は 32767 と小さな値となっています 。
32+ PHP 7.1.0 より前のバージョンでは、 (Windows のような)いくつかのプラットフォームにおいて
33+ < function >getrandmax</ function > は 32767 と小さな値となっていました 。
3434 32767 より広い範囲にしたい場合、
3535 <parameter >min</parameter > および <parameter >max</parameter > を指定することで、
3636 これより大きな範囲の乱数を生成することができます。
102102 <row >
103103 <entry >7.1.0</entry >
104104 <entry >
105- <function >rand</function > は、<function >mt_rand</function > の
105+ <function >rand</function > は、<function >mt_rand</function > の
106106 <link linkend =" migration71.incompatible.rand-srand-aliases" >エイリアスになりました。</link >
107107 </entry >
108108 </row >
You can’t perform that action at this time.
0 commit comments