Add binding for rng.