Ejemplo n.º 1
0
 public static int getRandamInt(int max)
 {
     BaseCompatilizedRandom r = new BaseCompatilizedRandom(new RndMersenneTwister());
     return r.Next(max);
 }
Ejemplo n.º 2
0
 public static Point getPoint(Rectangle rect, int seed)
 {
     BaseCompatilizedRandom r = new BaseCompatilizedRandom(new RndMersenneTwister(seed));
     return new Point(r.Next(rect.X, rect.X + rect.Width), r.Next(rect.Y, rect.Y + rect.Height));
 }