random(ZZ,Ring) -- a random ring element of a given degree
Synopsis:
i1 : R = GF(9,Variable=>a)[x,y]; |
i2 : random(3,R)
7 3 6 2 2 3
o2 = a x + a x y + a*x*y + a*y
o2 : R |
See also:
setRandomSeed -- set starting point for random number generator
Code:
-- ../../../Macaulay2/m2/genmat.m2:54
random(ZZ,Ring) := RingElement => (n,R) -> random({n},R)