code: public static void fillUniform(DMatrixD1 mat , double min , double max , Random rand )
      {
          double d[] = mat.getData();
          int size = mat.getNumElements();
  
          double r = max-min;
  
          for( int i = 0; i < size; i++ ) {
              d[i] = r*rand.nextDouble()+min;
          }
      }
docs: <p>
  Sets each element in the matrix to a value drawn from an uniform distribution from 'min' to 'max' inclusive.
  </p>
  
  @param min The minimum value each element can be.
  @param max The maximum value each element can be.
  @param mat The matrix who is to be randomized. Modified.
  @param rand Random number generator used to fill the matrix.