When two one-dimensional Bose–Einstein condensates interfere, they exhibit a fluctuating interference pattern. The full statistical distribution of the interference amplitude can be predicted, thanks to a remarkable connection to several exactly solvable problems.