added rng to beta with basic test