| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
random_int(PHP 7) random_int — Generates cryptographically secure pseudo-random integers 説明
int random_int
( int
$min
, int $max
)Generates cryptographic random integers that are suitable for use where unbiased results are critical, such as when shuffling a deck of cards for a poker game. この関数が使う不規則性のソースはつぎのとおりです。
パラメータ
返り値
Returns a cryptographically secure random integer in the range
エラー / 例外例例1 random_int() example
<?php 上の例の出力は、 たとえば以下のようになります。 int(248) int(-898) 参考
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「random_int - Generates cryptographically secure pseudo-random integers」をGoogle検索
|