add rand() to get 1000 interger