I tried this
<?php $names = array( 'jim','john','jenny'); print $names[rand(1,4)]; ?>
but it just prints john and jenny, and sometimes blank, but no jim?
How come Jim isnt in there and why does it come up blank sometimes? 🙁
try
print $names[rand(0,2)];
ahhh works, so its 0,1,3, thanks homie g funk slice