On Thu, 4 Oct 2001, Liu Tao wrote: seed your random number generator like so:
srand(time(NULL)); before calling random. > I use random() in my program to generate a random number, > but every time when I restart my program I get the same number. > How can I get different random numbers each time? > > -- > Regards > Liu Tao > > >