public static double RandomDouble(double min = 0, double max = 0) { var randr = new SecureRandom(); var tmp = randr.NextDouble(); return (tmp * max) + min; }