Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $var = array('Cruzeiro', 'São Paulo', 'Palmeiras', 'Santos', 'Inter', 'Corinthians');
- $time = 0;
- while ($time < 5) {
- $jg = rand(0,5);
- $jg2 = rand(0,4);
- $var2 = $var[$jg];
- if($jg) {
- $time = 5;
- echo $var[5]." hexacampeão brasileiro \o/";
- }
- unset($var[5]);
- else {
- $time = $jg2;
- echo "O ".$var[$jg2]." não conseguiu vencer dessa vez";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement