Use java.util.Random() or
Use the following simple class RandomMatrix to generate the matirix (which uses Random()).
Take a look at randomMatrix. It contains a single function to generate the Random Matrix.
Take a look at RanMatrix. It contains a single function to generate the Random Matrix.
Note: The Matrices generated contain integers between 0 and 255.