B u `âã@s0ddlmZdd„Zdd„ZGdd„deƒZdS) é)ÚrandomcCst||dtƒƒS)acOur implementation of random.randint. The Python random.randint is not consistent between python versions and produces a series that is different in 3.x than 2.x. So that we can support deterministic testing (i.e., setting the random.seed and expecting the same sequence), we will implement a simple, but stable version of randint().é)Úintr)ÚaÚb©rú9/tmp/pip-unpacked-wheel-n62dbgi3/pyomo/common/modeling.pyÚrandintsr cCsh| |¡dkrt||ƒs|S|dtddƒf7}x2| |¡dkrNt||ƒsN|S|ttddƒƒ7}q2WdS)Nz_%dré )Ú componentÚhasattrr Ústr)ÚinstanceÚnamerrrÚunique_component_namesrc@seZdZdZdS)ÚNoArgumentGivena Class to be used to indicate that an optional argument was not specified, if `None` may be ambiguous. Usage: >>> def foo(value=NoArgumentGiven): >>> if value is NoArgumentGiven: >>> pass # no argument was provided to `value` N)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrrr&s rN)rr rÚobjectrrrrrÚ s