import random


def choose_from(*args):
	"""Choose a random item from a variable number of lists."""
	num_words = sum([len(x) for x in args])

	# Take the ith item from the lists
	i = random.randint(0, num_words - 1)
	for (j, x) in enumerate(args):
		if i < len(x):
			return x[i]
		i -= len(x)