Added an RNG helper extension method