On Tue, Mar 2, 2010 at 4:05 PM, Paul Hiemstra <p.hiems...@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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to