make rng static