In reply to rickitura1:
Using the config_db is the recommended method. If your configuration contains a lot of randomized variables, then creating a configuration class and passing it down the hierarchy using the config_db is easier than setting/getting a lot of individual variables.