added rng with chi square goodness of fit test to categorical
fixed rng for multinomial