I am baffled why you have gone so far down this road, Ted. Considerable effort
has gone into making prediction of value N of the RNG sequence unrelated to
value N-1 of the sequence as long as you don't know the internal state of the
RNG. This is true for both the R internal RNG and the platform-
On 20/02/2014 12:00, (Ted Harding) wrote:> [see at end]
>
> It seems clear that Izhak seeks to detach the random generation of y
> from the random generation of x after using set.seed(). On my reading of
>?RNG
> once set.seed has been used, as RUI says, it affects all subsequent
> calls to the
[see at end]
On 20-Feb-2014 10:47:50 Rui Barradas wrote:
> Hello,
>
> I'm not sure I understand the question. When you use set.seed, it will
> have effect in all calls to the random number generator following it. So
> the value for y is also fixed.
> As for your code, you don't need the second s
Hello,
I'm not sure I understand the question. When you use set.seed, it will
have effect in all calls to the random number generator following it. So
the value for y is also fixed.
As for your code, you don't need the second set.seed. And though it is
not syntatically incorrect, the way you a
how do i use set.seed? for example i want to generate fix x with different
value of y each time i.e
genarate x<-rnorm(10)
generate y<-rnorm(10)
i want have x fix but y changes at each iteration. this what i try but is not
working
{
set.seed(100)
x<-10*runif(10)
}
x
set.seed(y<-rnorm(10))
y
5 matches
Mail list logo