The easiest way I've found to generate random numbers for seeding
an animation is with the Javascript patch:
if ( outputs[0] == null )
outputs[0] = Math.random();
Anybody have a better way?
Considering you need to memorize the random number, I don't see any
other solution.
Note that the random function of the JS patch is not deterministic,
contrary to the Random Patch. This means you won't get the same
sequence of random numbers from the point when the composition starts
rendering. In your case, it seems that's what you're looking for.