COIN-OR::LEMON - Graph Library

Changeset 2242:16523135943d in lemon-0.x for test/simann_test.cc


Ignore:
Timestamp:
10/14/06 17:26:05 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2991
Message:

New random interface
Switching to the new interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/simann_test.cc

    r1956 r2242  
    2424public:
    2525  double d, prev_d;
    26   MyEntity() : d(100000.0) { srand48(time(0)); }
     26  MyEntity() : d(100000.0) {}
    2727  double mutate() {
    2828    prev_d = d;
    29     if (drand48() < 0.8) { d += 1.0; }
     29    if (rnd.boolean(0.8)) { d += 1.0; }
    3030    else { d -= 1.0; }
    3131    return d;
Note: See TracChangeset for help on using the changeset viewer.