How to generate random integer number??
Quote:
> I tried rand(), but everytime it return the same number 346 to
> me.........
> Can anyone help??
In the FAQ, which you read before you posted your question, you
unaccountably overlooked Question 13.17, which reads "Each time I run my
program, I get the same sequence of numbers back from rand()."
The FAQ URL is in my sig, so you shouldn't have too much trouble
tracking down the answer to your question.
--
Richard Heathfield
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton