added random module

avoid duplicate status through random module