Re: [R-SIG-Mac] set.seed

2020-01-23 Thread Adrian Dușa
On Thu, Jan 23, 2020 at 3:24 PM peter dalgaard wrote: > > > On 23 Jan 2020, at 12:15 , Adrian Dușa wrote: > > [...] > > Curiously though, I run the very same R version on both computers and I would have expected RNGkind() to work the same. > > The most likely explanation is that on one machine yo

Re: [R-SIG-Mac] set.seed

2020-01-23 Thread peter dalgaard
> On 23 Jan 2020, at 12:15 , Adrian Dușa wrote: > > Dear Peter, > > Thanks, it's good to know there is a good explanation for this and also the > sample.kind is now more stable. > Curiously though, I run the very same R version on both computers and I would > have expected RNGkind() to work

Re: [R-SIG-Mac] set.seed

2020-01-23 Thread Adrian Dușa
Dear Peter, Thanks, it's good to know there is a good explanation for this and also the sample.kind is now more stable. Curiously though, I run the very same R version on both computers and I would have expected RNGkind() to work the same. Best, Adrian On Thu, Jan 23, 2020 at 11:18 AM peter dalg

Re: [R-SIG-Mac] set.seed

2020-01-23 Thread peter dalgaard
That's the effect of RNGkind(sample.kind="Rejection") which is the new default. Unfortunately, the older and buggy "Rounding" has a tendency to linger in saved workspaces. -pd > RNGkind(sample.kind="Rejection") > set.seed(12) > sample(letters[1:10]) [1] "b" "g" "c" "f" "e" "i" "d" "j" "h" "a"