Home
last modified time | relevance | path

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

/PHP-8.2/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) 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 DpickArrayKeys.phpt2 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 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.2/ext/random/
H A Drandom.stub.php144 public function pickArrayKeys(array $array, int $num): array {} function in Random\\Randomizer
H A Drandom_arginfo.h138 ZEND_METHOD(Random_Randomizer, pickArrayKeys);
214 …ZEND_ME(Random_Randomizer, pickArrayKeys, arginfo_class_Random_Randomizer_pickArrayKeys, ZEND_ACC_…
H A Drandomizer.c230 PHP_METHOD(Random_Randomizer, pickArrayKeys) in PHP_METHOD() argument
/PHP-8.2/
H A DNEWS887 . Fixed bug GH-13138 (Randomizer::pickArrayKeys() does not detect broken

Completed in 19 milliseconds