On Nov 8, 7:50 pm, "[email protected]" <[email protected]> wrote: > > I don't know why we have to reset the seed to a known value. >
It is nice, especially for testing purposes, to be able to always have the SAME sequence of "random" numbers. For example, if you write a test case that runs a piece of code with random inputs 1,000,000 times, and you see a failure, it would be nice to figure out what inputs caused the failure or at least to be able to re-run the test to make sure you actually fixed the error. Allowing the user to set the seed value gives repeatability to such tests. Or, comparing two algorithms may be fairer if you run them on the SAME sequence of "random" data. I'm sure there are other use cases too where this would be useful. -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
