Hi, i think you can create using random() a (nearly ?) uniform distributed random variable. By using two uniform distributed random variables and Box-Muller transform you can create two normal distributed variables. By scaling with sigma and mu you can get your desired normal distribution. Please note that I haven't checked it myself. Kind regards, Matthias
↧