Numerical Recipes Forum
>
Obsolete Editions Forum
>
Methods: Chapters 7, 8, and 20
> Modifying ran2() to include endpoints
Modifying ran2() to include endpoints
Maarten de Jong
03-09-2005, 11:20 AM
I need to modify the C-version of ran2() so instead of returning a number in the interval (0.0, 1.0) it can return endpoints too (left, right, or both). How do I do this?