# random_normal¶

ivy.random_normal(mean=0.0, std=1.0, shape=None, dev_str='cpu', f=None)[source]

Draws samples from a normal distribution.

Parameters
• mean (float) – The mean of the normal distribution to sample from. Default is 0.

• std (float) – The standard deviation of the normal distribution to sample from. Default is 1.

• shape – Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. If size is None (default), a single value is returned.

• dev_str (str) – device on which to create the array ‘cuda:0’, ‘cuda:1’, ‘cpu’ etc.

• f (ml_framework, optional) – Machine learning framework. Inferred from inputs if None.

Returns

Drawn samples from the parameterized uniform distribution.

Supported Frameworks: