Home
last modified time | relevance | path

Searched refs:mt_rand (Results 1 – 25 of 46) sorted by relevance

12

/PHP-5.6/ext/standard/tests/math/
H A Dmt_rand_error.phpt2 Test mt_rand() - wrong params test mt_rand()
5 mt_rand(25);
6 mt_rand(10,100,false);
7 mt_rand("one", 100);
8 mt_rand(1, "hundered");
13 Warning: mt_rand() expects exactly 2 parameters, 1 given in %s on line 2
15 Warning: mt_rand() expects exactly 2 parameters, 3 given in %s on line 3
17 Warning: mt_rand() expects parameter 1 to be long, string given in %s on line 4
19 Warning: mt_rand() expects parameter 2 to be long, string given in %s on line 5
H A Dmt_rand_variation2.phpt2 Test mt_rand() function : usage variations - different data types as $max argument
5 /* Prototype : int mt_rand ([ int $min , int $max ] )
10 echo "*** Testing mt_rand) : usage variations ***\n";
78 // loop through each element of $inputs to check the behaviour of mt_rand()
82 var_dump(mt_rand(-1 * mt_getrandmax(), $input));
89 *** Testing mt_rand) : usage variations ***
141 Warning: mt_rand() expects parameter 2 to be long, string given in %s on line %d
146 Warning: mt_rand() expects parameter 2 to be long, string given in %s on line %d
151 Warning: mt_rand() expects parameter 2 to be long, array given in %s on line %d
156 Warning: mt_rand() expects parameter 2 to be long, string given in %s on line %d
[all …]
H A Dmt_rand_variation1.phpt5 /* Prototype : int mt_rand ([ int $min , int $max ] )
10 echo "*** Testing mt_rand() : usage variations ***\n";
78 // loop through each element of $inputs to check the behaviour of mt_rand()
82 var_dump(mt_rand($input, mt_getrandmax()));
89 *** Testing mt_rand() : usage variations ***
141 Warning: mt_rand() expects parameter 1 to be long, string given in %s on line %d
146 Warning: mt_rand() expects parameter 1 to be long, string given in %s on line %d
151 Warning: mt_rand() expects parameter 1 to be long, array given in %s on line %d
156 Warning: mt_rand() expects parameter 1 to be long, string given in %s on line %d
161 Warning: mt_rand() expects parameter 1 to be long, string given in %s on line %d
[all …]
H A Dmt_rand_basic.phpt2 Test mt_rand() - basic function test mt_rand()
9 $res = mt_rand();
41 $res = mt_rand($min[$x], $max[$x]);
71 $res = mt_rand($min[$x], 100);
85 mt_rand() tests with default min and max value (i.e 0 thru 2147483647)
88 mt_rand() tests with defined min and max value
/PHP-5.6/ext/openssl/tests/
H A Dopenssl_spki_new_basic.phpt42 return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', mt_rand(0, 0xffff),
43 mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0x0fff) | 0x4000,
44 mt_rand(0, 0x3fff) | 0x8000, mt_rand(0, 0xffff),
45 mt_rand(0, 0xffff), mt_rand(0, 0xffff));
H A Dopenssl_spki_export_basic.phpt44 return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', mt_rand(0, 0xffff),
45 mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0x0fff) | 0x4000,
46 mt_rand(0, 0x3fff) | 0x8000, mt_rand(0, 0xffff),
47 mt_rand(0, 0xffff), mt_rand(0, 0xffff));
H A Dopenssl_spki_verify_basic.phpt44 return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', mt_rand(0, 0xffff),
45 mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0x0fff) | 0x4000,
46 mt_rand(0, 0x3fff) | 0x8000, mt_rand(0, 0xffff),
47 mt_rand(0, 0xffff), mt_rand(0, 0xffff));
H A Dopenssl_spki_export_challenge_basic.phpt47 return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', mt_rand(0, 0xffff),
48 mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0x0fff) | 0x4000,
49 mt_rand(0, 0x3fff) | 0x8000, mt_rand(0, 0xffff),
50 mt_rand(0, 0xffff), mt_rand(0, 0xffff));
/PHP-5.6/ext/standard/tests/general_functions/
H A Dbug46587.phpt2 Bug #46587 (mt_rand() does not check that max is greater than min).
6 var_dump(mt_rand(3,8));
7 var_dump(mt_rand(8,3));
14 Warning: mt_rand(): max(3) is smaller than min(8) in %s on line %d
H A Drand.phpt2 rand() and mt_rand() tests
6 var_dump(mt_rand());
7 var_dump(mt_rand(-1));
8 var_dump(mt_rand(-1,1));
9 var_dump(mt_rand(0,3));
35 Warning: mt_rand() expects exactly 2 parameters, 1 given in %s on line %d
/PHP-5.6/ext/mysqli/tests/
H A Dmysqli_pconnect.phpt29 $index = mt_rand(0, $num);
47 $index = mt_rand(0, $num);
49 if (mt_rand(0, 1) > 0) {
63 $index = mt_rand(0, $num);
H A Dmysqli_fetch_assoc_bit.phpt63 $num_loops = mt_rand(1, $max_loops);
66 $value += mt_rand(0, $rand_max);
68 $value = mt_rand(0, $max_value);
H A Dmysqli_mysqli_result_invalid_mode.phpt16 $mode = mt_rand(-1000, 1000);
H A Dmysqli_stmt_get_result_bit.phpt69 $num_loops = mt_rand(1, $max_loops);
72 $value += mt_rand(0, $rand_max);
74 $value = mt_rand(0, $max_value);
H A Dmysqli_stmt_bind_result_format.phpt35 $col1 = mt_rand($min, $max);
226 $current_targets = mt_rand(-100000, 100000) / 10;
228 $trend = (mt_rand(0, 3) > 1) ? (mt_rand(-10000, 10000) / 100) : 'NULL';
234 (mt_rand(0, 1) > 0) ? mt_rand(0, 1000) : 'NULL',
H A Dmysqli_stmt_bind_result_bit.phpt80 $num_loops = mt_rand(1, $max_loops);
83 $value += mt_rand(0, $rand_max);
85 $value = mt_rand(0, $max_value);
H A Dmysqli_change_user_get_lock.phpt18 $lock = 'phptest_' . mt_rand(0, 100000);
78 $newlock = 'phptest_' . mt_rand(0, 100000);
H A Dmysqli_stmt_attr_get.phpt38 $invalid_attr = mt_rand(0, 10000);
H A Dmysqli_stmt_fetch_bit.phpt38 $value = mt_rand(0, $max_value);
/PHP-5.6/ext/pdo_mysql/tests/
H A Dpdo_mysql_attr_init_command.phpt20 $table = sprintf("test_%s", md5(mt_rand(0, PHP_INT_MAX)));
H A Dpdo_mysql_attr_multi_statements.phpt20 $table = sprintf("test_%s", md5(mt_rand(0, PHP_INT_MAX)));
H A Dpdo_mysql_get_attribute.phpt20 $invalid = mt_rand(-10000, 10000);
/PHP-5.6/ext/standard/
H A Dphp_math.h52 PHP_FUNCTION(mt_rand);
H A Drand.c310 PHP_FUNCTION(mt_rand) in PHP_FUNCTION() argument
/PHP-5.6/ext/sysvmsg/tests/
H A D005.phpt14 $id = ftok(__FILE__, chr(mt_rand(0, 255)));

Completed in 90 milliseconds

12