Implement av_bmg_next(), a Box-Muller Gaussian random generator.