Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function euroM(){
- $key[]=rand(0,50);
- for($i=0;$i<5;$i++){
- $helper=false;
- $new=rand(0,50);
- for($j=0;$j<count($key);$j++){
- if ($new=$key[$j]){
- $helper=true;
- }
- }
- if($helper==false){
- $key[]=$new;
- }
- }
- for($j=0;$j<count($key);$j++){
- echo"[$j]:$key[$j]\n";
- }
- }
- euroM();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement