input/output trouble cause segmentation fault
Dmitry Andreychuk
and.dmitry at gmail.com
Mon Jul 25 07:56:11 UTC 2011
On Fri, Jul 22, 2011 at 5:04 AM, eric <fsshl at att.net> wrote:
>
> I am hard to find any useful resource about how to use time() as
> seed to generate random number in web. /* or maybe I not industry
> enough */ plz help
>
>
$ man 2 time
srand( static_cast<unsigned int>( time(0) ) );
--
Dmitry Andreychuk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20110725/964f2e65/attachment.html>
More information about the Ubuntu-devel-discuss
mailing list