in reply to Re^5: Late PM, 12/24/2014 & all year long
in thread Late PM, 12/24/2014 & all year long
That suggests to me that srand(42) should produce identical results whenever it is called.However, there are a few situations where programs are likely to want to call "srand". One is for generating predictable results, generally for testing or debugging. There, you use "srand($seed)", with the same $seed each time.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^7: Late PM, 12/24/2014 & all year long
by BrowserUk (Patriarch) on Dec 30, 2014 at 11:31 UTC | |
by syphilis (Archbishop) on Dec 30, 2014 at 12:16 UTC | |
by BrowserUk (Patriarch) on Dec 30, 2014 at 12:31 UTC | |
by syphilis (Archbishop) on Dec 30, 2014 at 13:12 UTC | |
by BrowserUk (Patriarch) on Dec 30, 2014 at 13:32 UTC |