[R] Drawing random numbers from Uniform distribution with infinite range

Daniel Lobo d@n|e|obo9976 @end|ng |rom gm@||@com
Mon Jul 28 18:00:35 CEST 2025


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?



More information about the R-help mailing list