Example:
$array = array('john', 'city', 'small');
$rand = Arrays::randElement($array);
Result: rand element from array public static randElement ( array $elements ) : null | ||
$elements | array | |
return | null |