I wanted to generate a random real (I guess rational) number.
To do this I wanted to use runif(1, min = m, max = M)
and my thoughts were to set m; M
(absolute) as large as possible in order to make the interval as large as possible. Which brings me to my question:
M <- .Machine$double.xmax
m <- -M
runif(1, m, M)
## which returns
[1] Inf
Why is it not returning a number? Is the chosen interval simply too large?
PS
> .Machine$double.xmax
[1] 1.797693e+308