I want to generate lognormally distributed random samples using the quasi monte carlo method such as Halton sequence. I want the numbers within a certain bounds. I have the following code in matlab but it gives me numbers which are out of bounds how can I limit to produce samples within the bounds.
M=1;
bounds=[2 4];
Ns=20; % number of models
urnd = haltonset(M,'Skip',1e3,'Leap',1e2);
urnd = scramble(urnd,'RR2');
urnd = qrandstream(urnd);
modelCDF = qrand(urnd,Ns);
models = zeros(Ns,M);
models=logninv(modelCDF,0,3);