<?php$arr = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i');srand(32509475);var_dump(array_rand($arr));
Standard input is empty
int(3)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!