Home
last modified time | relevance | path

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

123

/PHP-7.0/ext/interbase/tests/
H A Dinterbase.inc73 rand()%12+1, rand()%28+1, rand()%100+1910,
74 rand()%24, rand()%60, rand()%60);
80 $len = rand() % $max_len;
83 $s .= sprintf("%c", rand() % 256);
90 $len = rand() % $max_len;
101 $n = substr(rand() . rand(), 0, rand() % $len + 1);
103 $n .= "." . substr(rand(), 0, rand() % ($len - strlen($n)) + 1);
106 $n = substr(rand() . rand(), 0, rand() % $len + 1);
108 $n = substr(rand() . rand(), 0, 1);
111 $n = substr(rand() . rand(), 0, rand() % ($len - $prec) + 1);
[all …]
/PHP-7.0/ext/standard/tests/math/
H A Drand_error.phpt2 Test rand() - wrong params test rand()
5 rand(25);
6 rand(10,100,false);
7 rand("one", 100);
8 rand(1, "hundered");
12 Warning: rand() expects exactly 2 parameters, 1 given in %s on line 2
14 Warning: rand() expects exactly 2 parameters, 3 given in %s on line 3
16 Warning: rand() expects parameter 1 to be integer, string given in %s on line 4
18 Warning: rand() expects parameter 2 to be integer, string given in %s on line 5
H A Drand_variation1.phpt2 Test rand() function : usage variations - different data types as $min argument
7 /* Prototype : int rand ([ int $min , int $max ] )
9 * Source code: ext/standard/rand.c
12 echo "*** Testing rand() : usage variations ***\n";
80 // loop through each element of $inputs to check the behaviour of rand()
84 var_dump(rand($input, 100));
91 *** Testing rand() : usage variations ***
116 Warning: rand() expects parameter 1 to be integer, float given in %s on line %d
145 Warning: rand() expects parameter 1 to be integer, string given in %s on line %d
150 Warning: rand() expects parameter 1 to be integer, string given in %s on line %d
[all …]
H A Drand_variation2.phpt2 Test rand() function : usage variations - different data types as $max argument
7 /* Prototype : int rand ([ int $min , int $max ] )
9 * Source code: ext/standard/rand.c
12 echo "*** Testing rand) : usage variations ***\n";
80 // loop through each element of $inputs to check the behaviour of rand()
84 var_dump(rand(100, $input));
91 *** Testing rand) : usage variations ***
116 Warning: rand() expects parameter 2 to be integer, float given in %s on line %d
145 Warning: rand() expects parameter 2 to be integer, string given in %s on line %d
150 Warning: rand() expects parameter 2 to be integer, string given in %s on line %d
[all …]
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);
84 rand() tests with default min and max value (i.e 0 thru %i)
87 rand() tests with defined min and max value
/PHP-7.0/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.0/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 Dsocket_set_nonblock.phpt14 $rand = rand(1,999);
15 $s_c_l = socket_create_listen(31330+$rand);
H A Dsocket_connect_params.phpt14 $rand = rand(1,999);
15 $s_c = socket_create_listen(31330+$rand);
20 $s_w = socket_connect($s_c, '0.0.0.0', 31330+$rand);
H A Dsocket_getsockname.phpt14 $rand = rand(1,999);
16 $s_bind = socket_bind($s_c, '0.0.0.0', 31330+$rand);
H A Dsocket_bind_params.phpt14 $rand = rand(1,999);
15 $s_c = socket_create_listen(31330+$rand);
H A Dsocket_getpeername.phpt14 $rand = rand(1,999);
16 $s_bind = socket_bind($s_c, '0.0.0.0', 31330+$rand);
H A Dsocket_read_params.phpt14 $rand = rand(1,999);
18 $s_c_l = socket_create_listen(31330+$rand);
H A Dsocket_bind.phpt17 $rand = rand(1,999);
19 $s_bind = socket_bind($s_c, '0.0.0.0', 31330+$rand);
H A Dsocket_write_params.phpt14 $rand = rand(1,999);
17 $s_c = socket_create_listen(31330+$rand);
H A Dsocket_create_listen_params.phpt14 $rand = rand(1,999);
/PHP-7.0/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.0/ext/pdo_pgsql/tests/
H A Dbug69362.phpt17 $user = 'pdo_test_'.rand(5, 400);
43 $rand = rand(5, 400);
44 $user = "pdo_test_$rand";
H A Dbug62479.phpt17 $user = 'pdo_test_'.rand(5, 400);
43 $rand = rand(5, 400);
44 $user = "pdo_test_$rand";
/PHP-7.0/ext/pdo/
H A Dpdo.php17 $the_name = "foo" . rand();
18 $the_value = "bar" . rand();
/PHP-7.0/Zend/tests/anon/
H A D005.phpt26 rand(1, 100),
27 rand(2, 200)
/PHP-7.0/ext/standard/tests/file/
H A Dfread_socket_variation1.phpt7 $port = rand(10000, 65000);
/PHP-7.0/ext/date/tests/
H A Dformat-negative-timestamp.phpt12 $new_tm = rand(1, $max);
/PHP-7.0/ext/standard/tests/network/
H A Dsocket_get_status_basic.phpt7 $port = rand(10000, 65000);
/PHP-7.0/ext/standard/
H A Drand.c78 ret = rand(); in php_rand()
289 PHP_FUNCTION(rand) in PHP_FUNCTION() argument

Completed in 37 milliseconds

123