Add missing method genRange for StdGen (fixes #794)