(n, p, K)
return [K.one] + [ K(int(uniform(0, p))) for i in xrange(0, n) ]
Generate a random polynomial in ``GF(p)[x]`` of degree ``n``.

    Examples
    ========

    >>> from sympy.polys.domains import ZZ
    >>> from sympy.polys.galoistools import gf_random
    >>> gf_random(10, 5, ZZ) #doctest: +SKIP
    [1, 2, 3, 2, 1, 1, 1, 2, 0, 4, 2]
Generate a random polynomial in ``GF(p)[x]`` of degree ``n``.
Generate a random polynomial in GF ( p ) [ x ] of degree n .
def gf_random(n, p, K):
    """
    Generate a random polynomial in ``GF(p)[x]`` of degree ``n``.

    Examples
    ========

    >>> from sympy.polys.domains import ZZ
    >>> from sympy.polys.galoistools import gf_random
    >>> gf_random(10, 5, ZZ) #doctest: +SKIP
    [1, 2, 3, 2, 1, 1, 1, 2, 0, 4, 2]

    """
    return [K.one] + [ K(int(uniform(0, p))) for i in xrange(0, n) ]
def gf_random ( n , p , K ) : return [ K . one ] + [ K ( int ( uniform ( 0 , p ) ) ) for i in xrange ( 0 , n ) ]