Skip to content

Instantly share code, notes, and snippets.

@jasonclemons
Created June 15, 2016 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonclemons/cc80c02f508304cfd5b84ae85af6970d to your computer and use it in GitHub Desktop.
Save jasonclemons/cc80c02f508304cfd5b84ae85af6970d to your computer and use it in GitHub Desktop.
TSA Queue Randomizer
<?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