Should be pretty easy: something similar to
setrand(rand(X, Y, Z)):- Seed is X * Y * Z, srand(Seed).
There is no guarantee that you'll get the same sequence, though.
MCL
______________________________________________________________________________ Miss a couple of car payments and you'll see if someone cares if you're alive.