thread and its conclusion
both dealing with a similar problem of producing repeatable pseudorandom sequences might be helpful to you. I used Math::Random::MT
to generate random numbers and seeded it deterministically to get repeatable sequences without touching srand(), since srand()'s seed may have been depended on in other unrelated parts of the application (where less deterministic behavior was needed).
Math::Random::MT keeps the seed state in an object instance, so it makes for easy construction of multiple deterministic pseudorandom sequence generators.