How do I get a good seed for a random number generator? I think I need a function similar to 'clock' in 'time.h', but it should return the number of clock ticks since the computer started, so it doesn't return the same number every time.
Is there a way you could manipulate your random results using a loop and math expressions for each second that the clock is seeding your generator?
That's the only thing I can think of trying, since I don't know how else to seed the generator.
Is there a way you could manipulate your random results using a loop and math expressions for each second that the clock is seeding your generator?
That's the only thing I can think of trying, since I don't know how else to seed the generator.