cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/distributions/UniformDistr.java
public static double sample(Random rd, double min, double max) {
        if (min >= max) {
            throw new IllegalArgumentException("Maximum must be greater than the minimum.");
        }

        return (rd.nextDouble() * (max - min)) + min;
    }
/**
     * Generates a new pseudo random number based on the generator and values
     * provided as parameters.
     *
     * @param rd the random number generator
     * @param min the minimum value
     * @param max the maximum value
     * @return the next random number in the sequence
     */
Generates a new pseudo random number based on the generator and values
provided as parameters.

@param rd the random number generator
@param min the minimum value
@param max the maximum value
@return the next random number in the sequence
Generates a new pseudo random number based on the generator and values provided as parameters . @param rd the random number generator @param min the minimum value @param max the maximum value @return the next random number in the sequence
public static double sample(Random rd, double min, double max) {
        if (min >= max) {
            throw new IllegalArgumentException("Maximum must be greater than the minimum.");
        }
        return (rd.nextDouble() * (max - min)) + min;
    }
public static double sample ( Random rd , double min , double max ) { if ( min >= max ) { throw new IllegalArgumentException ( "Maximum must be greater than the minimum." ) ; } return ( rd . nextDouble ( ) * ( max - min ) ) + min ; }
Generates a new pseudo random number based on the generator and values
 provided as parameters.
Generates a new pseudo random number based on the generator and values provided as parameters .