RNG method added