I'd have made myself an AI program for calculations. Honestly, about 70% of the time is spent on all sorts of recalculations. Maybe there would have been a chance to run it, even with work in the picture. Well, for some minor NPCs, you could use an AI chat.
The main thing is to roll randomness through a proper programming language, or at least a randomizer, because AI itself still can't throw dice.