by Example
显示下拉菜单
rand()
«
rad2deg
|
random_bytes
»
<?php
$int
=
rand
(
5
,
// [int $min]
15
// [int $max]
);
?>
结果
$int
=
11
示例
#1
rand
()
#2
rand
(
5
,
15
)
另请参阅
array_rand
,
getrandmax
,
gmp_random
,
mt_getrandmax
,
mt_rand
,
mt_srand
,
openssl_random_pseudo_bytes
,
random_bytes
,
srand
Deutsch
English
Español
Français
Italiano
Português
Română
Türkçe
Русский
中文
日本語
帮助
杂项
配置
测试
单元测试
PHP手册
php.net
无需手动
Powered by
PHP
7.1.33 (0.01 s)
2014-2017 Michel Corne