[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## [Help-gsl] generating random numbers between two numbers

**From**: |
Awhan Patnaik |

**Subject**: |
[Help-gsl] generating random numbers between two numbers |

**Date**: |
Tue, 6 May 2008 17:30:18 +0530 |

GSL allows random number generation between the unit interval [0,1]. However
if one has to generate numbers between ANY two real numbers a and b then one
way is the following:
num = a + rand*(b-a) where rand is a random number in the unit interval. Is
this the only way available ? I mean are the statistical properties
preserved in such cases.

**[Help-gsl] generating random numbers between two numbers**,
*Awhan Patnaik* **<=**