Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Call random image
<?php
$random = rand(0, 2);
$picture = array(
'pic.jpg',
'other-pic.png',
'something.gif'
);
?>
<img src="<?php echo $picture[$random];?>"></a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment