File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed
reference/random/functions Expand file tree Collapse file tree 1 file changed +21
-4
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: 0b6c76516a299395a3703e6df44f8ea4cb4549a8 Maintainer: hirokawa Status: ready -->
3+ <!-- EN-Revision: 0a5e7b12546b62a611a0cbc7105e617ab96fbcbd Maintainer: hirokawa Status: ready -->
44<!-- CREDITS: takagi,mumumu -->
55<refentry xml : id =" function.mt-rand" xmlns =" http://docbook.org/ns/docbook" xmlns : xlink =" http://www.w3.org/1999/xlink" >
66 <refnamediv >
6565 <parameter >min</parameter > (あるいは 0)
6666 から <parameter >max</parameter > (あるいは <function >mt_getrandmax</function >、それぞれ端点を含む)
6767 までの間のランダムな整数値を返します。
68- <parameter >max</parameter > が <parameter >min</parameter > より小さい場合は
69- &false; を返します。
7068 </para >
7169 </refsect1 >
70+ <refsect1 role =" errors" >
71+ &reftitle.errors;
72+ <itemizedlist >
73+ <listitem >
74+ <simpara >
75+ <parameter >max</parameter > が <parameter >min</parameter > より小さい場合
76+ <classname >ValueError</classname > がスローされます。
77+ </simpara >
78+ </listitem >
79+ </itemizedlist >
80+ </refsect1 >
7281 <refsect1 role =" changelog" >
7382 &reftitle.changelog;
7483 <para >
8190 </row >
8291 </thead >
8392 <tbody >
93+ <row >
94+ <entry >8.0.0</entry >
95+ <entry >
96+ <parameter >max</parameter > が <parameter >min</parameter > より小さい場合は
97+ <classname >ValueError</classname > がスローされます。
98+ 以前は <constant >E_WARNING</constant > が発生し、関数は &false; を返していました。
99+ </entry >
100+ </row >
84101 <row >
85102 <entry >7.2.0</entry >
86103 <entry >
92109 <row >
93110 <entry >7.1.0</entry >
94111 <entry >
95- <function >rand</function > は、<function >mt_rand</function > の
112+ <function >rand</function > は、<function >mt_rand</function > の
96113 <link linkend =" migration71.incompatible.rand-srand-aliases" >エイリアスになりました。</link >
97114 </entry >
98115 </row >
You can’t perform that action at this time.
0 commit comments