Simplify random host choice.

The random Python module provides a handy funcion for choosing a random
element from a sequence.  Use that instead of a more manual method of
accomplishing the same thing.

Change-Id: I1908bd5e79b6c21d0dcf7e540143e9b8de478d24