For what it's worth, here is an extract from the R documentation. runif(n, min = 0, max = 1) # min and max have defaults ... '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.