Generic Function

Made a generic function to call all RNG with their respective state
class as argument. Made some changes to adapt all the other algorithms
for that.