@public
def random_poly(x, n, inf, sup, domain=ZZ, polys=False):
 poly = Poly(dup_random(n, inf, sup, domain), x, domain=domain)
 if (not polys):
  return poly.as_expr()
 else:
  return poly

@ public def random_poly ( x , n , inf , sup , domain = ZZ , polys = False ) : poly = Poly ( dup_random ( n , inf , sup , domain ) , x , domain = domain ) if ( not polys ) : return poly . as_expr ( ) else : return poly
return a polynomial of degree n with coefficients in [inf .