Beispiel #1
0
        public static Position RandomPosition(int minx, int miny, int maxx, int maxy)
        {
            var x = GameRandom.Next(minx, maxx);
            var y = GameRandom.Next(miny, maxy);

            return(new Position(x, y));
        }
Beispiel #2
0
 public Position RandomInArea()
 {
     return(new Position(GameRandom.Next(MinX, MaxX), GameRandom.Next(MinY, MaxY)));
 }