update : 2015.11.03
php.shukuma.com검색:
|
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. The sources of randomness used for this function are as follows:
인수
반환값
Returns a cryptographically secure random integer in the range
오류/예외
예제Example #1 random_int() example
<?php 위 예제의 출력 예시: int(248) int(-898) 참고
|