in reply to Predictable random sequence
While this is an interesting problem and I liked the answers, especially hdb's, it seems disconnected from your actual need. Predictable, randomized integers for use in unit tests, never changing. It would take one pass with int(rand(...)) for 1 .. $whatever to build a fixture and be done with it; and not risk introducing complications or dependencies on new code. The more code a test has the worse I think.
Update: keszler basically said this already. DERP.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Predictable random sequence
by Laurent_R (Canon) on Sep 17, 2013 at 16:57 UTC | |
Re^2: Predictable random sequence
by Anonymous Monk on Sep 17, 2013 at 15:40 UTC |
In Section
Seekers of Perl Wisdom