in reply to Old random number generator

Just throwing this out there, Test::Random Also, OP's problem seems similar to the issue of relying on hash keys being iterated over in a deterministic order. In other words, bone headed.