Re: [R] seed problem?

2021-03-29 Thread Mika Hamari
exist, random numbers are random. Mika L�hett�j�: Bill Dunlap<mailto:williamwdun...@gmail.com> L�hetetty: maanantai 29. maaliskuuta 2021 18.56 Vastaanottaja: Mika Hamari<mailto:mika.hamar...@outlook.com> Kopio: r-help@r-project.org<mailto:r-help@r-project.org> Aihe: Re: [R] s

Re: [R] seed problem?

2021-03-29 Thread Bill Dunlap
Does this happen if you start R with the --vanilla flag? If so it may be that you have a startup file, .\.Rprofile or %HOME%\.Rprofile that is calling set.seed(n) for a fixed n. -Bill On Mon, Mar 29, 2021 at 12:16 AM Mika Hamari wrote: > > Hi! > > I have Windows 10 on PC and different versions

Re: [R] seed problem?

2021-03-29 Thread Mika Hamari
-help@r-project.org, Mika Hamari , r-help@r-project.org Aihe: Re: [R] seed problem? Check if you have a .RData file in your R startup directory. It may contain the seed. .RData files (without anything in front of the period) are dangerous... many R users avoid them because they can easily drag

Re: [R] seed problem?

2021-03-29 Thread Jeff Newmiller
Check if you have a .RData file in your R startup directory. It may contain the seed. .RData files (without anything in front of the period) are dangerous... many R users avoid them because they can easily drag in mistakes from previous sessions to plague you. On March 28, 2021 9:02:17 AM

[R] seed problem?

2021-03-29 Thread Mika Hamari
Hi! I have Windows 10 on PC and different versions of R. I noticed that when I executed simulation with R 4.0.3, it gave exactly the same results next time when I re-opened the program. I didn�t set the seed. I tested this also with simple �rnorm(10,100,10)�, and the results were every time