(n)
return ''.join([random.choice('01') for i in xrange(n)])
Generates a random bitlist of length n.

    Examples
    ========

    >>> from sympy.combinatorics.graycode import random_bitstring
    >>> random_bitstring(3) # doctest: +SKIP
    100
Generates a random bitlist of length n.
Generates a random bitlist of length n .
def random_bitstring(n):
    """
    Generates a random bitlist of length n.

    Examples
    ========

    >>> from sympy.combinatorics.graycode import random_bitstring
    >>> random_bitstring(3) # doctest: +SKIP
    100
    """
    return ''.join([random.choice('01') for i in xrange(n)])
def random_bitstring ( n ) : return '' . join ( [ random . choice ( '01' ) for i in xrange ( n ) ] )