Three ways to generate static electricity include:
Friction: Rubbing two materials together can create a buildup of static charge.
Induction: An electric field can cause charges to separate and accumulate on a conductor.
Electrostatic discharge: Electric charges can be transferred between objects through the air.