Potential function and random position of charges
Claculates and plots potentials