Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- srand();
- $fc[0] = "zenit";
- $fc[1] = "barcelona";
- $fc[2] = "milan";
- $fc[3] = "dortmund";
- $fc[4] = "real madrid";
- $fc[5] = "Juventus";
- $fc[6] = "totenhem";
- $fc[7] = "manchester united";
- $fc[8] = "manchester citi";
- $fc[9] = "lokomotiv";
- $fc[10] = "CSKA";
- $fc[11] = "Chelsea";
- $fc[12] = "Inter";
- $fc[13] = "Dinamo";
- $fc[14] = "Bauren";
- $fc[15] = "Arsenal";
- $fc[16] = "Valencia";
- $fc[17] = "Monako";
- $fc[18] = "Inter milan";
- $fc[19] = "New castle";
- function names($commands) {
- $used = Array();
- for($i = 0; $i != count($commands) / 2; $i++) {
- do { $tmp1 = rand(0, count($commands) - 1); } while(in_array($tmp1, $used));
- $used[] = $tmp1;
- do { $tmp2 = rand(0, count($commands) - 1); } while(in_array($tmp2, $used));
- $used[] = $tmp2;
- echo $commands[$tmp1] . " VS " . $commands[$tmp2] . "<br/>";
- }
- }
- names($fc);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement