I defined polynomial ring like this. Here is K is finite field of size 4 in 'a'
R1=PolynomialRing(K,['z%s'%p for p in range(1,3)])
When I call random_element
function
R1.random_element()
I get the following output,
(a)*z1*z2 + (a + 1)*z2^2 + z1 + (a)*z2
But I only want a random linear polynomial from this ring? How can I do it?
I would be grateful for the help.