Home
last modified time | relevance | path

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

123

/PHP-5.4/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-5.4/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 long, string given in %s on line 4
18 Warning: rand() expects parameter 2 to be long, string given in %s on line 5
H A Drand_variation1.phpt2 Test rand() function : usage variations - different data types as $min argument
5 /* Prototype : int rand ([ int $min , int $max ] )
7 * Source code: ext/standard/rand.c
10 echo "*** Testing rand() : usage variations ***\n";
78 // loop through each element of $inputs to check the behaviour of rand()
82 var_dump(rand($input, 100));
89 *** Testing rand() : usage variations ***
141 Warning: rand() expects parameter 1 to be long, string given in %s on line %d
146 Warning: rand() expects parameter 1 to be long, string given in %s on line %d
151 Warning: rand() expects parameter 1 to be long, array given in %s on line %d
[all …]
H A Drand_variation2.phpt2 Test rand() function : usage variations - different data types as $max argument
5 /* Prototype : int rand ([ int $min , int $max ] )
7 * Source code: ext/standard/rand.c
10 echo "*** Testing rand) : usage variations ***\n";
78 // loop through each element of $inputs to check the behaviour of rand()
82 var_dump(rand(100, $input));
89 *** Testing rand) : usage variations ***
141 Warning: rand() expects parameter 2 to be long, string given in %s on line %d
146 Warning: rand() expects parameter 2 to be long, string given in %s on line %d
151 Warning: rand() expects parameter 2 to be long, array 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]);
71 $res = rand($min[$x], 100);
86 rand() tests with default min and max value (i.e 0 thru %i)
89 rand() tests with defined min and max value
/PHP-5.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-5.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 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_write_params.phpt14 $rand = rand(1,999);
17 $s_c = 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_create_listen_params.phpt14 $rand = rand(1,999);
/PHP-5.4/ext/pdo/
H A Dpdo.php17 $the_name = "foo" . rand();
18 $the_value = "bar" . rand();
/PHP-5.4/ext/pdo_pgsql/tests/
H A Dbug62479.phpt17 $user = 'pdo_test_'.rand(5, 400);
43 $rand = rand(5, 400);
44 $user = "pdo_test_$rand";
/PHP-5.4/ext/standard/tests/file/
H A Dfread_socket_variation1.phpt7 $port = rand(10000, 65000);
/PHP-5.4/ext/date/tests/
H A Dformat-negative-timestamp.phpt12 $new_tm = rand(1, $max);
/PHP-5.4/ext/standard/tests/network/
H A Dsocket_get_status_basic.phpt7 $port = rand(10000, 65000);
H A Dtcp4loop.phpt7 $port = rand(10000, 65000);
/PHP-5.4/ext/fileinfo/tests/
H A Dbug68819_002.phpt15 $string .= str_repeat(chr(rand(32, 127)), 8184);
/PHP-5.4/ext/zlib/tests/
H A Dbug_34821.phpt22 $s .= chr(rand(0,255));
/PHP-5.4/ext/standard/
H A Drand.c78 ret = rand(); in php_rand()
289 PHP_FUNCTION(rand) in PHP_FUNCTION() argument

Completed in 24 milliseconds

123