Generation of a random 3x3 matrix as initial input.