eltrinco
- 6
- 0
i am confused between when to use rand and randn . can someone explain to me please?
rand()
Return a matrix with random elements uniformly distributed
on the interval (0, 1). The arguments are handled the same
as the arguments for `eye'.
randn()
Return a matrix with normally distributed pseudo-random
elements having zero mean and variance one. The arguments
are handled the same as the arguments for `rand'.