import random


def random_placement(vms_migrate, hosts_dst):
    """ Algorithm for placing VMs on random hosts.

    :param vms_migrate: A list of VMs to migrate.
     :type vms_migrate: list(str)

    :param hosts_dst: A list of possibile host destination for migration.
     :type hosts_dst: list(str)

    :return: A map of VM UUIDs to host names.
     :rtype: dict(str: str)
    """
    placement = {}
    for vm in vms_migrate:
        rand_index = random.randint(0, len(hosts_dst) - 1) #uniform random in [0, n-1], n=number of host
        rand_host = hosts_dst[rand_index]
        placement[vm] = rand_host

    return placement;