<random-integer-matrix> ( m n max -- matrix )
Extra matrix operations

Prev:<translation-matrix4> ( offset -- matrix )
Next:<random-unit-matrix> ( m n max -- matrix )


Vocabulary
math.matrices.extras

Inputs
man integer
nan integer
maxan integer


Outputs
matrixa matrix


Word description
Creates a m x n matrix full of random, possibly signed integers whose absolute values are less than or equal to max, as given by randoms.

Notes
The signedness of the numbers in the resulting matrix will be randomized. Use mabs with this word to generate a matrix of random positive integers.
This word is the integral variant of <random-unit-matrix>.


Errors
no-method if max is not an integer.

Examples
USING: math.matrices.extras prettyprint ; 2 4 15 <random-integer-matrix> .
{ { -9 -9 1 3 } { -14 -8 14 10 } }


Definition