wee question (to replace the pin-drop jokes :-) ) :
program in C under Unix.
Is there any way to get the time in tenth or hundredth of seconds ?
Or to phrase it differently : i need a random number generator that won't
give the same sequence of numbers every time that the seed is reinitialised
in the same second (by 2 different users)
srand(time(NULL)) 
and then rand()
doesn't work.
Or a different kind of seed ?  Suggestions are welcome (should be readily
available in your standard Unix system)
Thanks,

Elise
***********************************************************************************
This email and any accompanying files are confidential.      If you are
not  the  intended recipient  you  must not use,  copy or disclose the
content.   If you have received this email in error please contact the 
sender by return email and delete this message. 
Thankyou for your co-operation.
*************************************************************************************

_______________________________________________
Scottish mailing list
[EMAIL PROTECTED]
http://mailman.lug.org.uk/mailman/listinfo/scottish

Reply via email to