rand(n)

The rand(n) function returns an n x n matrix of unique random numbers.

Example

OML

>>rand(4)

0.0421652 0.30783 0.258351 0.680869

0.948486 0.118794 0.172625 0.564678

0.0834101 0.892237 0.866376 0.273034

0.193842 0.945946 0.974604 0.0165791

Block

randfunction