/PHP-7.2/ext/standard/tests/math/ |
H A D | mt_rand_error.phpt | 2 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"); 11 Warning: mt_rand() expects exactly 2 parameters, 1 given in %s on line 2 13 Warning: mt_rand() expects exactly 2 parameters, 3 given in %s on line 3 15 Warning: mt_rand() expects parameter 1 to be integer, string given in %s on line 4 17 Warning: mt_rand() expects parameter 2 to be integer, string given in %s on line 5
|
H A D | mt_rand_variation2.phpt | 2 Test mt_rand() function : usage variations - different data types as $max argument 7 /* Prototype : int mt_rand ([ int $min , int $max ] ) 12 echo "*** Testing mt_rand) : usage variations ***\n"; 80 // loop through each element of $inputs to check the behaviour of mt_rand() 84 var_dump(mt_rand(-1 * mt_getrandmax(), $input)); 91 *** Testing mt_rand) : usage variations *** 116 Warning: mt_rand() expects parameter 2 to be integer, float given in %s on line %d 145 Warning: mt_rand() expects parameter 2 to be integer, string given in %s on line %d 150 Warning: mt_rand() expects parameter 2 to be integer, string given in %s on line %d 155 Warning: mt_rand() expects parameter 2 to be integer, array given in %s on line %d [all …]
|
H A D | mt_rand_variation1.phpt | 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($input, mt_getrandmax())); 89 *** Testing mt_rand() : usage variations *** 141 Warning: mt_rand() expects parameter 1 to be integer, string given in %s on line %d 146 Warning: mt_rand() expects parameter 1 to be integer, string given in %s on line %d 151 Warning: mt_rand() expects parameter 1 to be integer, array given in %s on line %d 156 Warning: mt_rand() expects parameter 1 to be integer, string given in %s on line %d 161 Warning: mt_rand() expects parameter 1 to be integer, string given in %s on line %d [all …]
|
H A D | mt_rand_value.phpt | 2 Test mt_rand() output 9 echo mt_rand().PHP_EOL; 15 $x ^= mt_rand(); 23 echo mt_rand().PHP_EOL; 29 $x ^= mt_rand();
|
H A D | bug75514.phpt | 2 Bug #75514 mt_rand returns value outside [$min,$max] 6 var_dump(mt_rand(0,999999999), mt_rand(0,999));
|
H A D | mt_rand_basic.phpt | 2 Test mt_rand() - basic function test mt_rand() 9 $res = mt_rand(); 41 $res = mt_rand($min[$x], $max[$x]); 69 $res = mt_rand($min[$x], 100); 83 mt_rand() tests with default min and max value (i.e 0 thru 2147483647) 86 mt_rand() tests with defined min and max value
|
H A D | bug75170.phpt | 2 Bug #75170: mt_rand() bias on 64-bit machines 14 $halves[(mt_rand(0, $max - 1) >> 1) & 1]++; 25 $halves[mt_rand(0, $max - 1) / ($max / 2)]++;
|
/PHP-7.2/ext/openssl/tests/ |
H A D | openssl_spki_new_basic.phpt | 42 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 D | openssl_spki_export_basic.phpt | 44 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 D | openssl_spki_verify_basic.phpt | 44 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 D | openssl_spki_export_challenge_basic.phpt | 47 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-7.2/ext/standard/tests/general_functions/ |
H A D | bug46587.phpt | 2 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 D | rand.phpt | 2 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-7.2/ext/mysqli/tests/ |
H A D | mysqli_pconnect.phpt | 29 $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 D | mysqli_mysqli_result_invalid_mode.phpt | 16 $mode = mt_rand(-1000, 1000);
|
H A D | mysqli_fetch_assoc_bit.phpt | 63 $num_loops = mt_rand(1, $max_loops); 66 $value += mt_rand(0, $rand_max); 68 $value = mt_rand(0, $max_value);
|
H A D | mysqli_stmt_get_result_bit.phpt | 69 $num_loops = mt_rand(1, $max_loops); 72 $value += mt_rand(0, $rand_max); 74 $value = mt_rand(0, $max_value);
|
H A D | mysqli_stmt_bind_result_format.phpt | 35 $col1 = mt_rand($min, $max); 228 $current_targets = mt_rand(-100000, 100000) / 10; 230 $trend = (mt_rand(0, 3) > 1) ? (mt_rand(-10000, 10000) / 100) : 'NULL'; 236 (mt_rand(0, 1) > 0) ? mt_rand(0, 1000) : 'NULL',
|
H A D | mysqli_stmt_bind_result_bit.phpt | 80 $num_loops = mt_rand(1, $max_loops); 83 $value += mt_rand(0, $rand_max); 85 $value = mt_rand(0, $max_value);
|
/PHP-7.2/ext/sodium/tests/ |
H A D | crypto_auth.phpt | 29 $badmsg[$i=mt_rand(0, 999)] = \chr( 31 1 << mt_rand(0, 7)
|
/PHP-7.2/ext/standard/ |
H A D | php_mt_rand.h | 41 PHP_MINIT_FUNCTION(mt_rand);
|
H A D | mt_rand.c | 314 PHP_FUNCTION(mt_rand) in PHP_FUNCTION() argument 355 PHP_MINIT_FUNCTION(mt_rand) in PHP_MINIT_FUNCTION() argument
|
H A D | php_math.h | 51 PHP_FUNCTION(mt_rand);
|
/PHP-7.2/ext/zlib/tests/ |
H A D | bug75273.phpt | 17 $j = mt_rand(0, 255);
|
/PHP-7.2/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_attr_init_command.phpt | 20 $table = sprintf("test_%s", md5(mt_rand(0, PHP_INT_MAX)));
|