I want write a short block of computer code that allows me to generate a random gassuian number. For example, if the inputs are mean = 100 and sd = 10, if I generage 1000 random numbers, I'd like 67% of them to be between 90 and 110, 98% of them to be be between 80 and 120. But I only know how to generate random numbers between 2 different values. For example I can generate random numbers between 90 and 110, but 90 would have just as as much probability of being generated as 100. How can I generate numbers that would make a nice bell curve if I generated enough of them?(adsbygoogle = window.adsbygoogle || []).push({});

Thanks.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Generating a random gaussian number

Loading...

Similar Threads - Generating random gaussian | Date |
---|---|

I Generating a random sample with a standard deviation | Aug 11, 2017 |

Random combination of letter generator | Nov 19, 2014 |

Moment generating function, CDF and density of a random variable | Nov 3, 2013 |

Correlated multivariable gaussian random number generation | Feb 8, 2011 |

Generated random data how can I check if it is a Gaussian? | Oct 15, 2008 |

**Physics Forums - The Fusion of Science and Community**