rand, srand, time simple usage