jax.random.uniform

Contents

jax.random.uniform#

jax.random.uniform(key, shape=(), dtype=<class 'float'>, minval=0.0, maxval=1.0)[source]#

Sample uniform random values in [minval, maxval) with given shape/dtype.

Parameters:
Returns:

A random array with the specified shape and dtype.

Return type:

Array