To
understand in detail how everything is pre-decided we first
have to understand the 4 laws of universe which are gravity,
strong force, weak force and electromagnetic force.
Universe
Both
electric and magnetic interactions are elements of a single
phenomenon called electromagnetism.
There are four fundamental forces :
The gravity, strong force, the weak force and the electromagnetic
force. The study of electromagnetism deals with how electrically
charged particles interact with each other and with magnetic
fields.
Electromagnetic fields :
An electromagnetic field is generated by electrically charged
objects. The field influences the behavior of other charged
objects and extends infinitely in space. Stationary electric
charges produce an electric field, while moving charges (electric
currents) produce a magnetic field. An electromagnetic field
consists of a combination of an electric field and a magnetic
field.