random.choice([1, 2, 3, 5, 9])
$input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank");
$rand_keys = array_rand($input, 1);
echo $input[$rand_keys[0]] . "\n";
// или
shuffle($input);
echo $input[0] . "\n";
$input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank");
echo $input[rand(0, count($input))];
<?php
$input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank");
$rand_keys = array_rand($input, 2);
echo $input[$rand_keys[0]] . "\n";
echo $input[$rand_keys[1]] . "\n";
?>