Record the generating probability p.