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.