RANDOMIZE MATRIX This command will set each grid square in the matrix to a random height between 0 and the height value given.
Syntax
    RANDOMIZE MATRIX Matrix Number, Maximum Height
Parameters
    Matrix Number
Integer The matrix number
    Maximum Height
Integer This command will set each grid square in the matrix to a random height between 0 and the height value given
Returns
This command does not return a value.
Description
The matrix number should be an integer value. The height should be a real number.
Example Code
    ink rgb(0,255,0),0

     box 1,1,101,101

     get image 1,0,0,101,101

     position camera 0,300,0

     autocam off

     make matrix 1,1000,1000,25,25

     prepare matrix texture 1,1,1,1

     position matrix 1,0,0,0

     ink rgb(255,255,255),0

     update matrix 1

    while inkey$()<>"x"

     set cursor 0,0

     print "press 1 to randomize matrix"

     if scancode()=2 then randomize matrix 1,rnd(100)

     update matrix 1

    endwhile

    if matrix exist(1)=1 then delete matrix 1

    end
See also
MATRIX Commands Menu Index