# random_uniform¶

Graph.random_uniform(shape, lower_bound, upper_bound, seed=None, *, name=None)

Creates a sample of uniformly distributed random numbers.

Parameters
• shape (tuple or list) – The shape of the sampled random numbers.

• lower_bound (int or float) – The inclusive lower bound of the interval of the uniform distribution.

• upper_bound (int or float) – The exlusive upper bound of the interval of the uniform distribution.

• seed (int, optional) – A seed for the random number generator. Defaults to None, in which case a random value for the seed is used.

• name (str, optional) – The name of the node.

Returns

A tensor containing a sample of uniformly distributed random numbers with shape shape.

Return type

Tensor