ran

Navigation:  Language Reference > Functions > Source >

ran

Previous pageReturn to chapter overviewNext page

Syntax

y = ran(x,s);

Description

Returns uniformly distributed noise in the interval [-x,x] with seed s. The seed parameter is optional. When omitted, the default value (0) is used.

Examples

x = 20;

y = ran(x);

z = ran(x,450);

Limitations

x and y must be scalars. The seed s must be a number in the region <0,65000>.