public static Matrix rand(int rows, int columns) {
Matrix m = new DenseMatrix(rows, columns);
java.util.Random rndGen = new java.util.Random();
for ( int r = 0; r < m.numRows(); r++ ) {
for ( int c = 0; c < m.numCols(); c++ ) {
m.setQuick( r, c, rndGen.nextDouble() );