added missing using statement and missing rng test for rayleigh distr