RandomMatrix - Maple Help

Student[LinearAlgebra]

 RandomMatrix
 construct a random Matrix
 RandomVector
 construct a random Vector

 Calling Sequence RandomMatrix(r, c, options) RandomVector[o](d, options)

Parameters

 r - non-negative integer; row dimension of the resulting Matrix c - (optional) non-negative integer; column dimension of the resulting Matrix [o] - (optional) use either [row] or [column] to specify the orientation of the resulting Vector d - (optional) non-negative integer; dimension of the resulting Vector options - (optional) parameters; for a complete list, see LinearAlgebra[RandomMatrix]

Description

 • The RandomMatrix(r, c) command returns an $rxc$ Matrix in which all entries have integer values in the range $-99..99$.
 The RandomMatrix(r) command returns an $rxr$ Matrix in which all entries have integer values in the range $-99..99$.
 • The RandomVector(d) command returns a d-dimensional Vector in which all entries have integer entries in the range $-99..99$.
 The RandomVector[row](d) command behaves like RandomVector(d), except that a row Vector is returned.  If the orientation option is omitted or if RandomVector[column](d) is used, a column Vector is returned.
 If the dimension is not provided, it defaults to 0.

Examples

 > $\mathrm{with}\left(\mathrm{Student}\left[\mathrm{LinearAlgebra}\right]\right):$
 > $\mathrm{RandomVector}\left(2\right)$
 $\left[\begin{array}{c}{-31}\\ {67}\end{array}\right]$ (1)
 > $\mathrm{RandomVector}\left[\mathrm{row}\right]\left(6\right)$
 $\left[\begin{array}{cccccc}{8}& {69}& {99}& {29}& {44}& {92}\end{array}\right]$ (2)
 > $\mathrm{RandomMatrix}\left(3,4\right)$
 $\left[\begin{array}{cccc}{-98}& {27}& {-72}& {-74}\\ {-77}& {-93}& {-2}& {-4}\\ {57}& {-76}& {-32}& {27}\end{array}\right]$ (3)