def METHOD_NAME(self, x=None, y=None, distribution=None):
    """
    Return a random integer in Pari.
    .. NOTE::
        The given arguments are passed to ``ZZ.random_element(...)``.
    INPUT:
    - `x`, `y` -- optional integers, that are lower and upper bound
      for the result. If only `x` is provided, then the result is
      between 0 and `x-1`, inclusive. If both are provided, then the
      result is between `x` and `y-1`, inclusive.
    - `distribution` -- optional string, so that ``ZZ`` can make sense
      of it as a probability distribution.
    EXAMPLES::
        sage: R = PariRing()
        sage: R.random_element().parent() is R
        True
        sage: R(5) <= R.random_element(5,13) < R(13)
        True
        sage: R.random_element(distribution="1/n").parent() is R
        True
    """
    from sage.rings.integer_ring import ZZ
    return self(ZZ.METHOD_NAME(x, y, distribution))