On Tue, Jan 19, 2016 at 9:23 AM, Chris Barker - NOAA Federal <chris.barker@noaa.gov> wrote:
What does the standard lib do for rand range? I see that randint Is closed on both ends, so order doesn't matter, though if it raises for b<a, then that's a precedent we could follow.
randint is not closed on the high end. The now deprecated random_integers is the function that does that.
For floats, it's good to have various interval options. For instance, in generating numbers that will be inverted or have their log taken it is good to avoid zero. However, the names 'low' and 'high' are misleading...