When I opened man page for std::normal_distribution I found out that the equation is not displayed correctly. It looks like this: f(x; μ,σ) = 1 σ √ 2π exp⎛ ⎜ ⎝ -1 2 ⎛ ⎜ ⎝ x-μ σ ⎞ ⎟ ⎠2 ⎞ ⎟ ⎠ and it should be all in one line.