improve the random strategy