rxWithSeed function

Preserved seed and possibly set the seed