add free rng
Final update on gr_test_prevalence.c