Amended new-method to support custom rng.
Fixed new docs.