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