Searched refs:pickArrayKeys (Results 1 – 9 of 9) sorted by relevance
/php-src/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) must not 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 43 $result = $randomizer->pickArrayKeys($array1, $i); 53 $result = $randomizer->pickArrayKeys($array2, $i); 63 $result = $randomizer->pickArrayKeys($array3, $i);
|
/php-src/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-src/ext/random/ |
H A D | random.stub.php | 152 public function pickArrayKeys(array $array, int $num): array {} function in Random\\Randomizer
|
H A D | random_arginfo.h | 153 ZEND_METHOD(Random_Randomizer, pickArrayKeys); 220 …ZEND_ME(Random_Randomizer, pickArrayKeys, arginfo_class_Random_Randomizer_pickArrayKeys, ZEND_ACC_…
|
H A D | randomizer.c | 388 PHP_METHOD(Random_Randomizer, pickArrayKeys) in PHP_METHOD() argument
|
Completed in 15 milliseconds