I'd like to generate a new point which should be uniformly distributed on the interval [a, b) (i.e. including the left extreme value - a and exluding the right extreme value - b). The runif
help says:
runif will not generate either of the extreme values unless max = min or max-min is small compared to min, and in particular not for the default arguments.
As I understand it, it generates values on the interval (a, b). Does this make any difference?
R
implementation of a uniform variable supported on $[a,b)$ (not just $(a,b)$):function(n, min=0, ...) {t <- runif(n, min=min, ...); if(FALSE) min else t}
:-). $\endgroup$