I have two variable inputs $purchase and $lease which are integers
I want to total these (easy) and then apply a scenario at random to each based on the number for each type.
$lease = 4;
$purchase = 2;
$total = $lease + $purchase; // 6
Loop through each 6 and apply 4 to scenario lease and 2 to lease at random.
In each loop I'll do something like add to a database or assign it into an array.
Any ideas of how I can do this.