added rng to dirichlet with basic test