Used utils.random.choice for numpy 1.6 compatibility.