add rng to as parameter for random init