Home
last modified time | relevance | path

Searched refs:rand (Results 1 – 25 of 44) sorted by relevance

12

/PHP-7.4/ext/standard/tests/general_functions/
H A Drand.phpt2 rand() and mt_rand() tests
11 var_dump(rand());
12 var_dump(rand(-1));
13 var_dump(rand(-1,1));
14 var_dump(rand(0,3));
41 Warning: rand() expects exactly 2 parameters, 1 given in %s on line %d
/PHP-7.4/ext/sockets/tests/
H A Dsocket_create_listen_used.phpt14 $rand = rand(1,999);
16 $s_c_l = socket_create_listen(31330+$rand);
19 $s_c_l2 = socket_create_listen(31330+$rand);
H A Dbug76839.phpt19 $senderSocketPath = '/tmp/' . substr(md5(rand()), 0, rand(8, 16)) . '.sock';
23 $receiverSocketPath = '/tmp/' . substr(md5(rand()), 0, rand(8, 16)) . '.sock';
/PHP-7.4/ext/standard/tests/math/
H A Drand_inverted_order.phpt2 Test rand function when min and max are in proper or inverted order
9 $correct_order = rand($min_value, $max_value);
10 $incorrect_order = rand($max_value, $min_value);
H A Drand_basic.phpt2 Test rand() - basic function test rand()
9 $res = rand();
41 $res = rand($min[$x], $max[$x]);
69 $res = rand($min[$x], 100);
83 rand() tests with default min and max value (i.e 0 thru %i)
86 rand() tests with defined min and max value
H A Dsrand_basic.phpt7 * Source code: ext/standard/rand.c
/PHP-7.4/ext/intl/tests/
H A Dbug71020.phpt10 …$myarray[substr(md5(microtime()),rand(0,26),9) . strval($x)]= substr(md5(microtime()),rand(0,26),9…
/PHP-7.4/ext/pdo_pgsql/tests/
H A Dbug69362.phpt17 $user = 'pdo_test_'.rand(5, 400);
44 $rand = rand(5, 400);
45 $user = "pdo_test_$rand";
H A Dbug62479.phpt17 $user = 'pdo_test_'.rand(5, 400);
44 $rand = rand(5, 400);
45 $user = "pdo_test_$rand";
/PHP-7.4/Zend/tests/anon/
H A D005.phpt26 rand(1, 100),
27 rand(2, 200)
H A D004.phpt24 rand(1, 100)
/PHP-7.4/ext/standard/tests/file/
H A Dfread_socket_variation1.phpt7 $port = rand(10000, 65000);
H A D004.phpt14 $old_int = $int = rand();
H A Dfgets_socket_variation1.phpt9 $port = rand(10000, 65000);
/PHP-7.4/ext/date/tests/
H A Dformat-negative-timestamp.phpt12 $new_tm = rand(1, $max);
/PHP-7.4/ext/standard/
H A Drand.c49 PHP_FUNCTION(rand) in PHP_FUNCTION() argument
/PHP-7.4/ext/standard/tests/network/
H A Dsocket_get_status_basic.phpt7 $port = rand(10000, 65000);
H A Dtcp4loop.phpt7 $port = rand(10000, 65000);
H A Dsocket_bug74429.phpt11 $port = rand(10000, 65000);
H A Dfsockopen_variation1.phpt8 $port = rand(10000, 65000);
H A Dtcp6loop.phpt17 $port = rand(10000, 65000);
H A Dudp6loop.phpt23 $port = rand(10000, 65000);
H A Dfsockopen_basic.phpt16 $port = rand(10000, 65000);
/PHP-7.4/ext/zlib/tests/
H A Dbug_34821.phpt22 $s .= chr(rand(0,255));
H A Dinflate_add_basic.phpt48 $uncompressed .= chr(rand(48,125));

Completed in 32 milliseconds

12