added rng to inv chi square with basic test