Home
last modified time | relevance | path

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

12

/php-src/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-src/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-src/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-src/ext/sockets/tests/
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-src/Zend/tests/anon/
H A D005.phpt26 rand(1, 100),
27 rand(2, 200)
H A D004.phpt24 rand(1, 100)
/php-src/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-src/ext/zend_test/tests/
H A Dzend_mm_custom_handlers_alloc_01.phpt8 $string = str_repeat('String', rand(1,100));
H A Dzend_mm_custom_handlers_free_01.phpt7 $string = str_repeat('String', rand(1,100));
/php-src/ext/standard/tests/file/
H A Dfread_socket_variation1.phpt7 $port = rand(10000, 65000);
H A Dfgets_socket_variation1.phpt9 $port = rand(10000, 65000);
H A D004.phpt14 $old_int = $int = rand();
/php-src/ext/date/tests/
H A Dformat-negative-timestamp.phpt12 $new_tm = rand(1, $max);
/php-src/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-src/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-src/ext/zlib/tests/
H A Dbug_34821.phpt22 $s .= chr(rand(0,255));
H A Dinflate_add_basic.phpt48 $uncompressed .= chr(rand(48,125));
/php-src/ext/standard/tests/streams/
H A Dstream_set_timeout_error.phpt8 $port = rand(10000, 65000);

Completed in 27 milliseconds

12