Uniform(low, high)
Source¶
Bases: Distribution
Decimals drawn with the same chance anywhere from low to high.
high itself is never drawn, as in numpy. Use RandomIntegers for whole numbers.
Added in version 0.1.0
Parameters:
-
low(float)Lowest value that can be drawn.
-
high(float)Value that every drawn value stays below, greater than or equal to
low.
Raises:
-
InvalidTypeErrorWhen a setting is not of the type its annotation names.
-
InvalidBoundsErrorWhen
lowis greater thanhigh.
Examples:
import numdaplot as ndp
ndp.Array.random(ndp.Uniform(low=0, high=1), shape=ndp.Shape([3]), seed=0)
# Array([0.63696169, 0.26978671, 0.04097352], dtype=FLOAT64)