David
Farruggio

MathGenie

rand

Uniformly distributed random numbers

Syntax and Description

rand returns a single uniformly distributed random number in the interval (0,1).
rand() returns a single uniformly distributed random number in the interval (0,1).
rand(n) returns an n-by-n matrix of random numbers.
rand(m,n) returns an m-by-n matrix of random numbers.
rand([m,n]) returns an m-by-n matrix of random numbers.

Back to functions