# normrnd

Generating random number with normal distribution

### normrnd(mu, sigma)

• It returns pseudo-random numbers of normal distributions with means and standard deviations given by mu and sigma, respectively.
• mu and sigma are arrays with the same sizes.
• If one of the inputs is a scalar, it would be expanded to match the size of the other input.
• sigma should contains non-negative numbers.

### normrnd(mu, sigma, m)

• It returns an m-by-m array containing pseudo-random numbers of normal distributions with means and standard deviations given by mu and sigma, respectively.
• mu and sigma should have sizes [m, m].
• If one of the inputs is a scalar, it would be expanded to match the size [m, m].
• m should be a positive integer.
• sigma should contains non-negative numbers.

### normrnd(mu, sigma, s1, s2,..., sn)

• It returns an array of pseudo-random numbers of normal distributions with means and standard deviations given by mu and sigma.
• s1, s2, ... sn should be non-negative integers.
• The output array has the size [s1, s2, ..., sn].
• mu and sigma should have size [s1, s2, ..., sn].
• If one of the inputs is a scalar, it would be expanded to match the size [s1, s2, ..., sn].
• sigma should contains non-negative numbers.

### normrnd(mu, sigma, sizeVec)

• It returns an array of pseudo-random numbers of normal distributions with means and standard deviations given by mu and sigma.
• The output has the size specified by the vector sizeVec.
• mu and sigma should have size sizeVec.
• If one of the inputs is a scalar, it would be expanded to match the size sizeVec.
• sigma should contains non-negative numbers.