Hi.. I need to generate a 5 digit random number on unix env., i have tried with rand() but it is giving same value for each time i run my binary. i tried with srand() as well but it is giving same value for same second.. Can u please suggest any alternative way to get 5 digit random number...?