code: def sample(self, n):
          
          rg = self._ctx._jvm.org.apache.commons.math3.random.JDKRandomGenerator()
          return _java2py(self._ctx, self._jmodel.sample(n, rg))
docs: Sample a series of size n assuming an ARIMA(p, d, q) process.
          
          Parameters
          ----------
          n:
              size of sample
              
          Returns a series reflecting ARIMA(p, d, q) process as a DenseVector