Home
last modified time | relevance | path

Searched refs:pickArrayKeys (Results 1 – 9 of 9) sorted by relevance

/PHP-8.4/ext/random/tests/03_randomizer/methods/
H A DpickArrayKeys_error.phpt2 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 DpickArrayKeys.phpt2 Random: Randomizer: pickArrayKeys(): Basic functionality
43 $result = $randomizer->pickArrayKeys($array1, $i);
53 $result = $randomizer->pickArrayKeys($array2, $i);
63 $result = $randomizer->pickArrayKeys($array3, $i);
/PHP-8.4/ext/random/tests/03_randomizer/
H A Dcompatibility_array_rand.phpt2 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 Dengine_unsafe_biased.phpt47 var_dump(randomizer()->pickArrayKeys(range(1, 1234), 1));
53 var_dump(randomizer()->pickArrayKeys(range(1, 1234), 10));
H A Dengine_unsafe_empty_string.phpt47 var_dump(randomizer()->pickArrayKeys(range(1, 1234), 1));
53 var_dump(randomizer()->pickArrayKeys(range(1, 1234), 10));
H A Dengine_unsafe_nul.phpt47 var_dump(randomizer()->pickArrayKeys(range(1, 123), 1));
53 var_dump(randomizer()->pickArrayKeys(range(1, 123), 10));
/PHP-8.4/ext/random/
H A Drandom.stub.php152 public function pickArrayKeys(array $array, int $num): array {} function in Random\\Randomizer
H A Drandom_arginfo.h153 ZEND_METHOD(Random_Randomizer, pickArrayKeys);
220 …ZEND_ME(Random_Randomizer, pickArrayKeys, arginfo_class_Random_Randomizer_pickArrayKeys, ZEND_ACC_…
H A Drandomizer.c388 PHP_METHOD(Random_Randomizer, pickArrayKeys) in PHP_METHOD() argument

Completed in 31 milliseconds