Searched refs:pickArrayKeys (Results 1 – 10 of 10) sorted by relevance
/PHP-8.2/ext/random/tests/03_randomizer/methods/ |
H A D | pickArrayKeys_error.phpt | 2 Random: Randomizer: pickArrayKeys(): Parameters are correctly validated 14 var_dump(randomizer()->pickArrayKeys("foo", 2)); 20 var_dump(randomizer()->pickArrayKeys([], 0)); 26 var_dump(randomizer()->pickArrayKeys(range(1, 3), 0)); 32 var_dump(randomizer()->pickArrayKeys(range(1, 3), -1)); 38 var_dump(randomizer()->pickArrayKeys(range(1, 3), 10)); 45 Random\Randomizer::pickArrayKeys(): Argument #1 ($array) must be of type array, string given 46 Random\Randomizer::pickArrayKeys(): Argument #1 ($array) cannot be empty 47 Random\Randomizer::pickArrayKeys(): Argument #2 ($num) must be between 1 and the number of elements… 48 Random\Randomizer::pickArrayKeys(): Argument #2 ($num) must be between 1 and the number of elements… [all …]
|
H A D | pickArrayKeys.phpt | 2 Random: Randomizer: pickArrayKeys(): Basic functionality 42 $result = $randomizer->pickArrayKeys($array1, $i); 52 $result = $randomizer->pickArrayKeys($array2, $i); 62 $result = $randomizer->pickArrayKeys($array3, $i);
|
/PHP-8.2/ext/random/tests/03_randomizer/ |
H A D | compatibility_array_rand.phpt | 2 Random: Randomizer: The Mt19937 engine and pickArrayKeys are consistent with array_rand() 22 [$mapPickOneMethod] = $randomizer->pickArrayKeys($map, 1); 23 $mapPickTwoMethod = $randomizer->pickArrayKeys($map, 2); 25 [$listPickOneMethod] = $randomizer->pickArrayKeys($list, 1); 26 $listPickTwoMethod = $randomizer->pickArrayKeys($list, 2);
|
H A D | engine_unsafe_biased.phpt | 47 var_dump(randomizer()->pickArrayKeys(range(1, 1234), 1)); 53 var_dump(randomizer()->pickArrayKeys(range(1, 1234), 10));
|
H A D | engine_unsafe_empty_string.phpt | 47 var_dump(randomizer()->pickArrayKeys(range(1, 1234), 1)); 53 var_dump(randomizer()->pickArrayKeys(range(1, 1234), 10));
|
H A D | engine_unsafe_nul.phpt | 47 var_dump(randomizer()->pickArrayKeys(range(1, 123), 1)); 53 var_dump(randomizer()->pickArrayKeys(range(1, 123), 10));
|
/PHP-8.2/ext/random/ |
H A D | random.stub.php | 144 public function pickArrayKeys(array $array, int $num): array {} function in Random\\Randomizer
|
H A D | random_arginfo.h | 138 ZEND_METHOD(Random_Randomizer, pickArrayKeys); 214 …ZEND_ME(Random_Randomizer, pickArrayKeys, arginfo_class_Random_Randomizer_pickArrayKeys, ZEND_ACC_…
|
H A D | randomizer.c | 230 PHP_METHOD(Random_Randomizer, pickArrayKeys) in PHP_METHOD() argument
|
/PHP-8.2/ |
H A D | NEWS | 934 . Fixed bug GH-13138 (Randomizer::pickArrayKeys() does not detect broken
|
Completed in 23 milliseconds