static double calculateDoubleInRange(double min, double max) { return random.nextDouble() * (max - min) + min; }