add mcapi rng with test