I know that how to generate random number with normal distribution, but my problem is determining range of numbers are produced. I need these numbers for random electrons velocities(dimensionless) which are between zero and one.
Asked
Active
Viewed 50 times
0
-
4I just googled this for you: [Generate random numbers following a normal distribution in C/C++](https://stackoverflow.com/questions/2325472/generate-random-numbers-following-a-normal-distribution-in-c-c). – Jabberwocky Oct 25 '17 at 08:20
-
1Actually, what do you mean "normal distribution in specific **range**?!" Normal distribution... "normally" has **infinite *range*** – Antti Haapala -- Слава Україні Oct 25 '17 at 08:26
-
"random number with normal distribution in specific range" There is no such thing. It's either normal or in a specific range. – n. m. could be an AI Oct 25 '17 at 08:27
-
I know Box-Muller transform method, Do you mean to specify the range by specifying the mean and standard deviation? – S. Hesam Oct 25 '17 at 08:32