[R] Random real numbers
Barry Rowlingson
b.rowlingson at lancaster.ac.uk
Tue Mar 2 17:35:53 CET 2010
On Tue, Mar 2, 2010 at 4:05 PM, Paul Hiemstra <p.hiemstra at geo.uu.nl> wrote:
> frederik vanhaelst wrote:
>>
>> Hi,
>>
>> How could i generate random real numbers between 0 en 2*pi?
>>
>> Thanks,
>
> Googeling for "R generate random number" gave this as a second hit (on my
> machine):
>
> http://blog.revolution-computing.com/2009/02/how-to-choose-a-random-number-in-r.html
>
If the original poster wanted real random numbers instead of random
real numbers:
http://finzi.psych.upenn.edu/R/library/random/html/random.html
but I'm not sure how best to convert those real random integers into
real random reals (between 0 and 2pi).
Barry
More information about the R-help
mailing list