[R] Drawing random numbers from Uniform distribution with infinite range
Chris Ryan
cwr @end|ng |rom @gency@t@t|@t|c@|@com
Mon Jul 28 18:14:52 CEST 2025
What would a pdf of such a distribution even look like? Intuitively, it
seems like the pdf everywhere would be, for all practical purposes,
zero? So no probability of drawing any value?
--Chris Ryan
Daniel Lobo wrote:
> Hi,
>
> I want to draw a set of random number from Uniform distribution where
> Support is the entire Real line.
>
> runif(4, min = -Inf, max = Inf)
>
> However it produces all NAN
>
> Could you please help with the right approach?
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list