Skip to content

Instantly share code, notes, and snippets.

@whyisjake
Created April 9, 2012 18:29
Show Gist options
  • Save whyisjake/2345266 to your computer and use it in GitHub Desktop.
Save whyisjake/2345266 to your computer and use it in GitHub Desktop.
Random Video
#!/usr/bin/perl
$num = int(rand(3));
print $num;
if ($num == 0) {
print '<div class="span4"><h3 class="meet">Meet the Makers</h3><iframe width="100%" height="200" src="http://www.youtube.com/embed/Ig-DbfPoz3o" frameborder="0" allowfullscreen></iframe></div>';
} elsif ($num == 1) {
print '<div class="span4"><h3 class="meet">Meet the Makers</h3><iframe width="100%" height="200" src="http://www.youtube.com/embed/estPhyfBGho" frameborder="0" allowfullscreen=""></iframe></div>';
} elsif ($num == 2) {
print '<div class="span4"><h3 class="meet">Meet the Makers</h3><iframe width="100%" height="200" src="http://www.youtube.com/embed/6JL4hpnZklk" frameborder="0" allowfullscreen=""></iframe></div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment