Get random item from array [duplicate]

echo $items[array_rand($items)];

array_rand()

Leave a Comment