up previous next
random linear form in polynomial ring
RandomLinearForm(R: RING): RINGELEM
RandomLinearForm(R: RING, n: INT): RINGELEM |
The function returns a non-zero random linear form in
R
, with integer
coefficients in the range
-n..n
.
If
R
has finite characteristic
p
,
RandomLinearForm(R)
returns a random linear form with integer coefficients in the range
0..p-1
.
/**/ R ::= ZZ/(101)[a,b,c,d,e,f];
/**/ RandomLinearForm(R, 1);
-a -c +d -e -f
/**/ RandomLinearForm(R);
49*a +37*b +36*c +12*d -37*e +34*f
|