Random breaking waves: A closed-form solution for planar beaches