summaryrefslogtreecommitdiff
path: root/doc/release/upcoming_changes/17921.compatibility.rst
blob: a1e2fb2d0408b52a4c2159d08f0287864e162381 (plain)
1
2
3
4
5
6
Validate input values in ``Generator.uniform``
----------------------------------------------
Checked that ``high - low >= 0`` in ``np.random.Generator.uniform``. Raises
``ValueError`` if ``low > high``. Previously out-of-order inputs were accepted
and silently swapped, so that if ``low > high``, the value generated was
``high + (low - high) * random()``.