code: @Override
      public INDArray rand(int[] shape, Distribution r) {
          INDArray ret = r.sample(shape);
          return ret;
      }
docs: Create a random ndarray with the given shape using the given rng
  
  @param shape the shape of the ndarray
  @param r     the random generator to use
  @return the random ndarray with the specified shape