jaxvacua.util.random_uniform#
- random_uniform(lower_bound, upper_bound, rns_key=None, seed=42, shape=(1,))#
Sample uniformly distributed real numbers on
[lower_bound, upper_bound).- Parameters:
lower_bound (
float) – Lower edge of the sampling interval.upper_bound (
float) – Upper edge of the sampling interval (exclusive).rns_key (
Union[PRNGSequence,Array,None]) – Key source. IfNone, a freshPRNGSequence(seed)is created. If aPRNGSequence,next()is called to obtain a subkey. If a raw JAX PRNG key, it’s used directly.seed (
int) – Seed used whenrns_key is None. Default42.shape (
Tuple[int,...]) – Output shape. Default(1,).
- Returns:
Array – Uniform samples of shape
shapeand dtypeDTYPE.- Return type:
Array