update config format and apply random number