[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 19:39:21 CEST 2025


Why? What do you plan to do with those numbers? I think that was Ben's
point: perhaps there is a different approach to accomplishing what you
want to accomplish. What do you want to accomplish?

--Chris Ryan

Daniel Lobo wrote:
> Many thanks for your guidance. However my original problem is, how to
> select n points in the Real line randomly without any preference of
> any particular probability distribution?
> 
> On Mon, 28 Jul 2025 at 21:45, Rui Barradas <ruipbarradas using sapo.pt> wrote:
>>
>> On 7/28/2025 5:00 PM, 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?
>>>
>



More information about the R-help mailing list