Removed rand functions that should not be in config.