rand
- rand returns a [0,1] uniformly distributed random number
- rand(n,m) returns a n x m matrix of [0,1] uniformly distributed random numbers
- rand(n) is equivalent to rand(n,n)
Examples
> rand# 0.0149846
> rand(2)# 0.309784 0.10251 0.767809 0.0799585
> rand(2,3)# 0.90252 0.0778686 0.150032 0.621424 0.376708 0.224652
> scatter(rand(10), rand(10)) [ans:1x1 struct]