Created
June 15, 2016 23:22
-
-
Save jasonclemons/cc80c02f508304cfd5b84ae85af6970d to your computer and use it in GitHub Desktop.
TSA Queue Randomizer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function randLane() | |
{ | |
$lane = rand(0, 1); | |
if ($lane == 0) { | |
return 'left'; | |
} else { | |
return 'right'; | |
} | |
} | |
echo '<img src="/assets/'.randLane().'.jpg" alt="" />'; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment