def METHOD_NAME(self, n_samples):
    """ See :meth:`pints.toy.ToyLogPDF.sample()`. """
    n_samples = int(n_samples)
    if n_samples < 1:
        raise ValueError(
            'Number of samples must be greater than or equal to 1.')
    return self._var.rvs(n_samples)