code: 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 range(n)])
  
file_path: sympy/sympy/combinatorics/graycode.py
imports: from sympy.core import Basic, Integer
  import random
label_desc: Use image node_id 1 for calling a global function with example usage: random_bitstring(n) and returns: str