def random_hosts(self, number_of_hosts):
return random.sample(self.hosts, number_of_hosts)<EOL>
Retrieve a random subset of available hosts.

        The number of hosts provided must not be larger
        than the number of available of hosts, otherwise
        it will throw a ValueError exception.

        :param number_of_hosts: Number of hosts to connect to.
        :type number_of_hosts: int
        :returns: Random subsample of available hosts.
        :rtype: list
        :raises: ValueError