Re: [R] Pseudo-random numbers between two numbers

2009-03-11 Thread Duncan Murdoch
g...@ucalgary.ca wrote: Please forget the last email I sent with the same subject. = I would like to generate pseudo-random numbers between two numbers using R, up to a given distribution, for instance, norm. That is something like rnorm(HowMany,Min,Max,mean,sd) over

Re: [R] Pseudo-random numbers between two numbers

2009-03-11 Thread Ted Harding
Because of a mistake I made in copying code into email, there has been confusion (expressed in some private emails). Hence the corrected version is appended at the end. On 11-Mar-09 00:05:26, Ted Harding wrote: I have modified my example to make it more convincing! See at end. On 10-Mar-09

[R] Pseudo-random numbers between two numbers

2009-03-10 Thread guox
I would like to generate pseudo-random numbers between two numbers using R, up to a given distribution, for instance, rnorm. That is something like rnorm(HowMany,Min,Max,mean,sd) over rnorm(HowMany,mean,sd). I am wondering if dnorm(runif(HowMany, Min, Max), mean, sd) is good. Any idea? Thanks.

[R] Pseudo-random numbers between two numbers

2009-03-10 Thread guox
Please forget the last email I sent with the same subject. = I would like to generate pseudo-random numbers between two numbers using R, up to a given distribution, for instance, norm. That is something like rnorm(HowMany,Min,Max,mean,sd) over rnorm(HowMany,mean,sd). I am wondering

Re: [R] Pseudo-random numbers between two numbers

2009-03-10 Thread Ted Harding
On 10-Mar-09 23:01:45, g...@ucalgary.ca wrote: Please forget the last email I sent with the same subject. = I would like to generate pseudo-random numbers between two numbers using R, up to a given distribution, for instance, norm. That is something like

Re: [R] Pseudo-random numbers between two numbers

2009-03-10 Thread Ted Harding
I have modified my example to make it more convincing! See at end. On 10-Mar-09 23:39:17, Ted Harding wrote: On 10-Mar-09 23:01:45, g...@ucalgary.ca wrote: Please forget the last email I sent with the same subject. = I would like to generate pseudo-random numbers between two