A Van de Graaf generator works by the triboelectric effect, transferring electrons along a belt and storing them on a sphere. When a student puts a hand on it, hair is the most obvious place they show up.