def rand_mac_address():
 mac = [250, 22, 62, random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)]
 return ':'.join([('%02x' % x) for x in mac])

def rand_mac_address ( ) : mac = [ 250 , 22 , 62 , random . randint ( 0 , 255 ) , random . randint ( 0 , 255 ) , random . randint ( 0 , 255 ) ] return ':' . join ( [ ( '%02x' % x ) for x in mac ] )
generate an ethernet mac address :return: an random ethernet mac address :rtype: string .