نمونه کد
کد PHP:
$value= array("Rabin","Reid","Cris","KVJ","John");

$rand_keys=array_rand($value,2);
echo 
$value[$rand_keys[0]];