[C++] 均勻亂數轉常態亂數 (Uniform to Normal) | 逍遙文工作室
C語言所產生的隨機亂數為均勻(Uniform)亂數,假如我們想要產生常態(Normal)亂數怎麼辦呢?我們先來… ... Gaussian function: where parameter μ is the mean (location of the peak) and σ 2 is the variance (the measure of the width of the distribution)....