[rubis] (bug-fix:minor) Since maxQty can be zero, add a check to avoid to generate random values in this case.