Subject: Re: Question for Windows/BeOS Developers.
From: Leonard Rosenthol (leonardr@lazerware.com)
Date: Wed Aug 23 2000 - 07:46:30 CDT
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: leonardr@lazerware.com 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
This archive was generated by hypermail 2b25 : Wed Aug 23 2000 - 07:43:19 CDT