def random_name_generator(first, second, x):
 names = []
 for i in range(0, int(x)):
  random_first = randint(0, (len(first) - 1))
  random_last = randint(0, (len(second) - 1))
  names.append('{0} {1}'.format(first[random_first], second[random_last]))
 return set(names)

def random_name_generator ( first , second , x ) : names = [ ] for i in range ( 0 , int ( x ) ) : random_first = randint ( 0 , ( len ( first ) - 1 ) ) random_last = randint ( 0 , ( len ( second ) - 1 ) ) names . append ( '{0} {1}' . format ( first [ random_first ] , second [ random_last ] ) ) return set ( names )
generates random names .