Mar
23
2011
Euro Coin Flipper

Some years ago, i wrote a very simple Coin Flipper for fun.
I forgot it, till today.

This is the code behind:


<?php

$result = rand();
$i = 1;
while ( $i <= rand(1, getrandmax() ) ) { 
        $i++;
        $result = rand();
}

if ( $result%2 )
        echo "<IMG src='euro_gr_front.gif' border='0'> ";
else
        echo "<IMG src='euro_gr_back.gif' border='0'> ";

?>

and this is the link: https://balaskas.gr/ … o/]Euro Coin Flipper