def RandomPoset(*args, **kwds): r""" This function is deprecated and will be removed in a future version of Sage. Please use ``Posets.RandomPoset`` instead. TESTS:: sage: RandomPoset(17,.15) doctest:1: DeprecationWarning: RandomPoset is deprecated, use Posets.RandomPoset instead! Finite poset containing 17 elements """ deprecation("%s is deprecated, use Posets.%s instead!" % \ ("RandomPoset","RandomPoset")) return Posets.RandomPoset(*args, **kwds)
def RandomPoset(*args, **kwds): r""" This function is deprecated and will be removed in a future version of Sage. Please use ``Posets.RandomPoset`` instead. TESTS:: sage: RandomPoset(17,.15) doctest:...: DeprecationWarning: RandomPoset is deprecated, use Posets.RandomPoset instead! See http://trac.sagemath.org/10998 for details. Finite poset containing 17 elements """ deprecation(10998, "%s is deprecated, use Posets.%s instead!" % \ ("RandomPoset","RandomPoset")) return Posets.RandomPoset(*args, **kwds)