Boost logo

Boost Users :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2004-12-15 16:02:26


On Dec 8, 2004, at 7:26 AM, Rui Carvalho wrote:

> Hi,
>
> I must be missing something basic as my use of random_vertex returns
> always
> the same vertex each time I run the code (which is listed below).
>
> Help would be much appreciated. I'm using MSVC 7.1 and boost 1.32 on
> windows
> XP.

The generators in the Random library are deterministic, so they should
always return the results. Seed the generator with something more
"random" (like the result of time(0)) to get some randomness.

        Doug


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net