Home
last modified time | relevance | path

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

12

/PHP-8.2/ext/standard/tests/general_functions/
H A Drand.phpt2 rand() and mt_rand() tests
10 var_dump(rand());
11 var_dump(rand(-1,1));
12 var_dump(rand(0,3));
/PHP-8.2/ext/random/tests/01_functions/
H A Drand_basic.phpt2 Test rand() - basic function test rand()
9 $res = rand();
39 $res = rand($min[$x], $max[$x]);
54 rand() tests with default min and max value (i.e 0 thru %i)
57 rand() tests with defined min and max value
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);
/PHP-8.2/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-8.2/ext/sockets/tests/
H A Dbug76839.phpt18 $senderSocketPath = '/tmp/' . substr(md5(rand()), 0, rand(8, 16)) . '.sock';
22 $receiverSocketPath = '/tmp/' . substr(md5(rand()), 0, rand(8, 16)) . '.sock';
/PHP-8.2/ext/pdo_pgsql/tests/
H A Dbug69362.phpt19 $user = 'pdo_test_'.rand(5, 400);
46 $rand = rand(5, 400);
47 $user = "pdo_test_$rand";
H A Dbug62479.phpt19 $user = 'pdo_test_'.rand(5, 400);
46 $rand = rand(5, 400);
47 $user = "pdo_test_$rand";
/PHP-8.2/Zend/tests/anon/
H A D005.phpt26 rand(1, 100),
27 rand(2, 200)
H A D004.phpt24 rand(1, 100)
/PHP-8.2/ext/opcache/tests/opt/
H A Dgh11170.phpt14 if (rand() % 10) {
26 if (rand() % 10) {
67 0000 INIT_FCALL 0 %d string("rand")
113 0000 INIT_FCALL 0 %d string("rand")
/PHP-8.2/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-8.2/ext/date/tests/
H A Dformat-negative-timestamp.phpt12 $new_tm = rand(1, $max);
/PHP-8.2/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 Dfsockopen_basic.phpt10 $port = rand(10000, 65000);
H A Dtcp6loop.phpt17 $port = rand(10000, 65000);
/PHP-8.2/ext/mbstring/tests/
H A Duuencode_encoding.phpt39 $strlen = rand(1, 300);
43 $randstring .= $characters[rand(0, strlen($characters) - 1)];
H A Diso2022jp_2004_encoding.phpt234 $jisx0208 = "\x1B\$B" . array_keys($jisx0208Chars)[rand(0,1000)];
235 $jisx0213_1 = "\x1B$(Q" . array_keys($jisx0213_2004_1Chars)[rand(0,1000)];
236 $jisx0213_2 = "\x1B$(P" . array_keys($jisx0213_2000_2Chars)[rand(0,1000)];
280 $size = rand(5,20);
287 $type = rand(0,4);
288 $chars = rand(0,10);
292 $ascii = chr(rand(0x20, 0x7E));
/PHP-8.2/ext/zlib/tests/
H A Dbug_34821.phpt22 $s .= chr(rand(0,255));
H A Dinflate_add_basic.phpt44 $uncompressed .= chr(rand(48,125));
/PHP-8.2/ext/standard/tests/streams/
H A Dstream_set_timeout_error.phpt8 $port = rand(10000, 65000);

Completed in 25 milliseconds

12