The generator scores and shuffles candidate exercises using the following mathematical logic:
1. Deficiency Score per body part = Ideal Ratio / (Actual Ratio + 0.01)
2. Exercise Base Score = Average Deficiency Score of all targeted body parts
3. Exercise Final Score = Base Score * Random Factor
(Random Factor is rolled dynamically between 0.600 and 1.400)
Candidates are ranked by their Final Score to select the top 5. The selected 5 are then ordered by their absolute Base Score (highest deficiency first) for the final workout sequence.