parameters: ()
return_statement: return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, "%02x" * 6]) % tuple(u)
docstring: Generate a random UUID.
docstring_summary: Generate a random UUID.
docstring_tokens: Generate a random UUID .
function: def randomUUID():
      """Generate a random UUID."""
      u = [random.randint(0, 255) for ignore in range(0, 16)]
      u[6] = (u[6] & 0x0F) | (4 << 4)
      u[8] = (u[8] & 0x3F) | (2 << 6)
      return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, "%02x" * 6]) % tuple(u)
function_tokens: def randomUUID ( ) : u = [ random . randint ( 0 , 255 ) for ignore in range ( 0 , 16 ) ] u [ 6 ] = ( u [ 6 ] & 0x0F ) | ( 4 << 4 ) u [ 8 ] = ( u [ 8 ] & 0x3F ) | ( 2 << 6 ) return "-" . join ( [ "%02x" * 4 , "%02x" * 2 , "%02x" * 2 , "%02x" * 2 , "%02x" * 6 ] ) % tuple ( u )