Construct a matrix or multi-way array of uniform random integers.
Arguments
- imax
A positive integer.
- nrow
The desired number of rows.
- ncol
The desired number of columns.
- ...
Further dimensions of the array.
- atleast_2d
Logical indicating whether or not to force column vectors to have a second dimension equal to one. Defaults to
FALSE
. This behavior can also be changed globally using, for exampleoptions(atleast_2d = TRUE)
.