As we already have the weight of each deployment in the config.json, it makes sense to have the total weight (this is equal to the maximusRandomNumber above) there as well. So, I am +1 to @mceire's suggestion.