docs: public static DMatrixRMaj diagonal(int numRows , int numCols , double min , double max , Random rand ) {
          if( max < min )
              throw new IllegalArgumentException("The max must be >= the min");
  
          DMatrixRMaj ret = new DMatrixRMaj(numRows,numCols);
  
          int N = Math.min(numRows,numCols);
  
          double r = max-min;
  
          for( int i = 0; i < N; i++ ) {
              ret.set(i,i, rand.nextDouble()*r+min);
          }
  
          return ret;
      }