How to stop set.seed() besides exiting out of R?
-----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- project.org] On Behalf Of C W Sent: Monday, March 18, 2013 11:27 AM To: r-help Subject: [R] How to stop set.seed() besides exiting out of R? Hi list, I am curious how to stop the set.seed(), I don't want the same repeated random number. I know I can set it to a different seed, but I don't want to go through the trouble of setting different seed every time. Thanks, Mike
Can you show us how you are using set.seed() that results in getting the same sequence repeatedly? If you are doing simulations in a loop, then set the seed once, outside the loop. Otherwise, I am not sure what you are doing that causes problems. A reproducible example would really help. Dan Daniel J. Nordlund Washington State Department of Social and Health Services Planning, Performance, and Accountability Research and Data Analysis Division Olympia, WA 98504-5204