Example #1
0
 public override Location GetRandomLocation()
 {
     return(new Location(X + Rnd.Get(W), Y + Rnd.Get(H), Rnd.Get(_minZ, _maxZ)));
 }
Example #2
0
 public override Location GetRandomLocation()
 {
     return(new Location(X + Rnd.Get(A), Y + Rnd.Get(A), 0));
 }
Example #3
0
        public override Location GetRandomLocation()
        {
            // get uniform distance and angle
            double distance = Math.Sqrt(Rnd.NextDouble()) * R;
            double angle    = Rnd.NextDouble() * Math.PI * 2;

            return(new Location((int)(distance * Math.Cos(angle)), (int)(distance * Math.Sin(angle)), Rnd.Get(_minZ, _maxZ)));
        }