>isnt the encryption key randomly generated?
That's a better question than you might know, or wish to know. By now you should have plenty of experience with weighted randomness in computer algorithms (see loot boxes with pity systems), so you should be aware that "random" and random aren't always the same thing.
>they can reverse engineer randomness?
In theory, yes, depending on the rules placed on that randomness. The AI computer is not solving "randomness," it is solving another computer's attempt at randomness.
>then there is no randomness and the universe is predetermined
People have made that argument for thousands of years. Fate and destiny and a person's disposition have been at odds with the modern American concept of free will forever. It'd be strong evidence that events will be what they are, and that's not the same as a simulation.
