I think you will find that 'set.seed' does give you the same
random state each time. That you don't get the same result
each time implies a bug in your code. Looking for uninitialized
variables would probably be a good start. Using valgrind
under Linux would most likely find the error quickly.
HI, all
I am debugging an R code with dynamically loaded function in it. It seems
set.seed(n) does not give me the same
random draws every time. Could somebody tell me what I should do to get the
same outcome verytime ?
I am not sure what infomation is relevent to this question , the f