adding rng traits
fixing rng traits bugs