[R] random normally distributed values within range

Achaz von Hardenberg fauna at pngp.it
Tue Oct 7 00:54:47 CEST 2008


Hi all,
I need to create 100 normally distributed random values (X) which can  
not exceed a specific range (i.e. 0<X<Y).
With rnorm I cannot specify Max and min  values among which values  
have to stay, like in runif so does some other simple way exist to do  
this with normally distributed random values?

thanks a lot in advance,

Dr. Achaz von Hardenberg
------------------------------------------------------------------------ 
--------------------------------
Centro Studi Fauna Alpina - Alpine Wildlife Research Centre
Servizio Sanitario e della Ricerca Scientifica
Parco Nazionale Gran Paradiso, Degioz, 11, 11010-Valsavarenche (Ao),  
Italy



More information about the R-help mailing list