repeating `randomKey()` isn't effective, since it's like calling `array_keys` repeatedly. Instead, you should call `array_keys` once, choose n keys randomly there, and return the values using an `array_map()` calls.