random(d, I)
random(L, I)
This function produces one or more homogeneous elements of an ideal.
|
|
|
|
|
|
|
|
|
|
|
Note that in the single graded case, the input {d} is treated as a multidegree of length one rather than a list of length one, hence the output is one polynomial, while {{d}} is treated as a list containing a single multidegree of length one and therefore the output is a list containing a single polynomial.
The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/Macaulay2Doc/functions/random-doc.m2:262:0.