CASTI-89 TITANIUM · CALC89

randMat(

Returns a matrix of the given size filled with random integers.

Syntax

randMat(numRows, numColumns)

Group
Matrix
Arguments
Takes the number of rows and the number of columns.
Availability
Included
Menu path
MATH ▸ Matrix ▸ CAS ▸ randMat(

Example

InputResult
dim(randMat(2,3)){2,3}

Typing dim(randMat(2,3)) on the home screen and pressing ENTER returns {2,3}.

Keystrokes on the TI-89 Titanium

2NDMATH4▶×3▼×20ENTER

The same key sequence inserts randMat( in Calc89, and the AI tutor shows it step by step on the on-screen keypad.

Related commands