Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
Decorator, when applied to a method returning different values each time
(e.g. :meth:`.next_random`) runs this method multiple times until a value
for which :meth:`.could_generate` returns ``True`` is returned, and finally
returns this value.

src/p/y/pyquchk-0.5.3/pyquchk/arbitraries/numbers.py   pyquchk(Download)
import random
from math import copysign, frexp
from six.moves import xrange
from .arbitrary import Arbitrary, with_samples
from .utils import filter_possible, until_possible, unique, product