next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
RandomIdeals :: randomMonomial

randomMonomial -- Choose a random monomial of given degree in a given ring

Synopsis

Description

Chooses a random monomial.

i1 : setRandomSeed(currentTime())

o1 = 1594135580
i2 : kk=ZZ/101

o2 = kk

o2 : QuotientRing
i3 : S=kk[a,b,c]

o3 = S

o3 : PolynomialRing
i4 : randomMonomial(3,S)

      2
o4 = a b

o4 : S

See also

Ways to use randomMonomial :