[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How to make a random number

Hi folks,
how do you generate random numbers in C? I know, there are functions in
stdlib.h (rand, srand). But at every execution they generate the same
number and that's bad for the purpose of my program.
Do I have to use time and date functions?

Thanks in advance,

Alex Weiss 
Software is like sex: it's better when it's free 	(Linus T.)

Reply to: