At 5:31 PM +1000 8/23/00, Martin Sevior wrote:
>In Unix I can do
>
>srand( (UT_uint32) time())
>
>Which works great. time() returns the number seconds since 1970. Is there
>a similar function in windows? I just need a function that is guarenteed
>to give a different result on every call. Since time always increases this
>will always work :-)
>
        Both srand() and time() are standard C library routines and
should work just fine on all platforms (definitely Windows and Mac
OS).


Leonard
--
----------------------------------------------------------------------------
                   You've got a SmartFriend� in Pennsylvania
----------------------------------------------------------------------------
Leonard Rosenthol                       Internet:       [EMAIL PROTECTED]
                                        America Online: MACgician
Web Site: <http://www.lazerware.com/>
FTP Site: <ftp://ftp.lazerware.com/>
PGP Fingerprint: C76E 0497 C459 182D 0C6B  AB6B CA10 B4DF 8067 5E65




Reply via email to