What about passing rng as a paramter:
`rng: Random = new Random`