COIN-OR::LEMON - Graph Library

Changeset 168:a5f82cbbc1e4 in glemon-0.x


Ignore:
Timestamp:
10/22/06 11:24:15 (13 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3010
Message:

Fix usage of Random. (Random's doc should possibly be improved.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graph_displayer_canvas.cc

    r167 r168  
    264264      NodeIt i((mytab.mapstorage).graph);
    265265
    266       double r=Random().getReal();
    267 
    268       dim2::Point<double> init(init_vector_length*sin(r),init_vector_length*cos(r));
     266      dim2::Point<double> init(init_vector_length*rnd(),
     267                               init_vector_length*rnd());
    269268      moveNode(init.x, init.y, nodesmap[i], i);
    270269      was_redesigned=true;
Note: See TracChangeset for help on using the changeset viewer.