getRNG function

get the RNG and seed from an object