I am curious of what role electrical current plays in a processor. When I asked this back in school a couple years ago, my teacher only replied that the processor executes instructions in response to a series of 0:s and 1:s. However, I cannot grasp how something as seemingly random and unpredictable as an electrical current can be used to execute instructions in a processor that is used for deterministic and predictable operations.
How is electrical current used by a processor?