>>349
clock()はプロセスが起動してからの時間だからやめた方がいいよ。
起動直後に呼ぶと毎回同じ値になる可能性がある。

srand((unsigned)(time(NULL) ^ clock()));でどうよ?