daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Mar 25th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Minen {
  2.     public static final int MINEN = 99;
  3.     public Mine[] MinenArray = new Mine[MINEN];
  4.  
  5.     public Minen(){
  6.         for(int i = 0; i < MINEN; i++){
  7.             int randomX = (int)(Math.random()*Anzeige.X + 1);
  8.             int randomY = (int)(Math.random()*Anzeige.Y + 1);
  9.             MinenArray[i]= new Mine(randomX,randomY);
  10.         }
  11.     }
  12.     public Mine get(int index){
  13.         return MinenArray[index];
  14.     }
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top