mirror of
https://github.com/php/php-src.git
synced 2026-04-22 07:28:09 +02:00
dd2692621d
Also replace one return; with RETURN_FALSE; for consistency.
19 lines
258 B
PHP
19 lines
258 B
PHP
--TEST--
|
|
Test normal operation of random_int()
|
|
--FILE--
|
|
<?php
|
|
//-=-=-=-
|
|
|
|
var_dump(is_int(random_int(10, 100)));
|
|
|
|
$x = random_int(10, 100);
|
|
var_dump($x >= 10 && $x <= 100);
|
|
|
|
var_dump(random_int(-1000, -1) < 0);
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|