how to randomly pick a record from an array laravel code example Example: laravel random value from array $k = array_rand($array); $v = $array[$k];