Many players believe that the symbols spinning on a screen or the cards being dealt are reacting to their behavior or "feeling" a win coming. In reality, the process is purely technical and instantaneous. When you select your bet amount and press the spin or deal button, the game client sends a request to the secure server.
The server then uses a mathematical algorithm to determine the outcome of that round immediately. This result is decided in a fraction of a second, long before any animation begins. The graphics you see—the spinning reels or the sliding cards—are simply a visual representation of a result that has already been locked in. The animation is there for excitement and suspense, but it cannot change the outcome. Once the animation completes, the server updates your account balance based on the result, completing the cycle.