in reply to Re: Re: reading a random line from a file
in thread reading a random line from a file

If you haven't, the first call to rand will call srand for you. You shouldn't do that explicitly anymore, since you run the risk of putting the srand call in a tight loop, and then your random numbers won't be very random anymore..

Makeshifts last the longest.

  • Comment on Re^3: reading a random line from a file