pic any one variable randomly from two variables php code example Example: laravel random value from array $k = array_rand($array); $v = $array[$k];