I have a lognormal distribution with known parameters mu, sigma, lower and upper bound, and I have the following code:
public class Generate_Random_vairate_test1 {
public static double mu = 4.09, sigma = 0.04, P;
public static void main(String[] args) {
LogNormalDistribution logNormal = newLogNormalDistribution(mu,sigma);
P = logNormal.simulate();
System.out.print(P);
}
}
}
My question is how can I use Java to generate a random number from the lognormal distribution with a specifice lower and upper bound? For example, if I have mu = 4.09, sigma = 0.04, LP = 53.3 and UP = 64.9 How to use Java in such a case?