"Doing X if Y" is not a free will decision if it's already encoded. In a sense it's not a decision at all. When X, the computer will do Y, period.
(And this also applies if we add some stohastic elements in the mix).
Computer can measure random event and do something basing on that.
> is not a free will decision if it's already encoded
Most probably so is our "free will".
The actions of a computer making decisions based on a noisy, nondeterministic source, can not be predicted.
From your previous post: It doesn't even matter if one is guilty or not -- the decision to jail them or not is already made before they committed anything and is independent of their actions.
The decision to jail them depends on whether they are found guilty. Whether they are found guilty depends on the information available at that time. What information is available is not deterministic even in a world lacking free will.
It depends on your viewpoint, but the reason for why they don't go to jail etc. is because it doesn't match the intent with jail. Jail is meant as a deterrence as well as shielding the society. If it doesn't work as a deterrence and we have better ways to shield the society from it happening again (which is "easy" to argue in regards to a mad person) then it doesn't make sense to force it upon people where it will do more harm than good (we still do it do a large extent, but society also benefits from its inhabitants believing that the system is fair and that is a difficult balance).
> Without free will there is no "decides".
This also depends on your viewpoint. A computer takes tons of decisions but they are all based on a given set of inputs, as will society (regardless of whether free will exist or not).