I’ve programmed luck before.
Mathematical randomness is determined, just in a way that’s confusing enough for humans to work with but it’s still determined. It’s a simple algorithm for luck.
If you calculate randomness by hand, there’s usually still an outside source. A book of randomness or the numbers shot out by the US NIST every month or however they do it.