change a percentage of mobs for another

hello, i know how to make a mob transforms into another one but i want to know how can i make that not all of that mob transforms

Continue to help post