On Fri, Jul 22, 2011 at 5:04 AM, eric <fs...@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
-- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss