// This method will be used to add the RNG to the global configuation public static IEnvironmentConfiguration WithRandomNumberGenerator(this IEnvironmentConfiguration configuration, Random random) { return(configuration.SetFactoryValue(RngKey, () => random.Next())); }