Den nya Rogue One-novelliseringen indikerar att droider bestämmer statistiska sannolikheter genom att utföra " mentala simuleringar " av troliga resultat.
With one second left until total shutdown, K-2SO chose to mentally simulate an impossible scenario in which Cassian Andor escaped alive.
The simulation pleased him.