As I said earlier it's better if you take the implicit rng as an argument instead of creating it.