private function generateRandomValues($numItems) { $randomValues = range(1, $numItems); shuffle($randomValues); return $randomValues; }