def GetUniqueFriendlyID(used_ids):
	"""
		Return an ID that is not in our list of already used IDs.
	"""
	# trying infinitely is a bad idea
	LIMIT = 1000

	count = 0
	while count < LIMIT:
		id = GetFriendlyID()
		if id not in used_ids:
			break
		count += 1
		id = ''
	return id

		Return an ID that is not in our list of already used IDs.
	
recipes/Python/526619_Friendly_Readable_ID_Strings/recipe-526619.py