This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Random number

Hi fellow programming gurus.

I've come up against a very hard problem and i want some advise.

My problem is that i need to generate a series of random numbers. I know that they are not really random (the term is deterministic) but i have created a really clever idea to improve the starting point of the sequence. I will seed the generator with a random number.

like this

<pree>

srand ( rand () ) ;


but it is not working  properly. Can you help me fix it?