The “two stage model of free will” furnishes us with an intelligible explanation how an agent “could have chosen to do otherwise given the same situation or circumstances.” It does this by employing both deterministic and indeterministic aspects.
A two-stage model of free will separates the free stage from the will stage.
In the first stage, alternative possibilities for thought and action are generated, in part indeterministically.
In the second stage, an adequately determined will evaluates the options that have been developed.If, on deliberation, one option for action seems best, it is selected and chosen. If no option seems good enough, and time permitting, the process can return to the further generation of alternative possibilities (“second thoughts”) before a final decision.
(source: Wikipedia: Two-stage model of free will)
This model parallels the way evolution operates - namely, random variation (the indeterministic aspect) and natural selection (the deterministic aspect l).