public static int getRandamInt(int max) { BaseCompatilizedRandom r = new BaseCompatilizedRandom(new RndMersenneTwister()); return r.Next(max); }
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)); }