randomSeed(analogRead(0));

thanks for the replies...was very much helpful