graph_displayer_canvas.cc
changeset 167 30a7be486475
parent 166 302d75b08b27
child 168 a5f82cbbc1e4
     1.1 --- a/graph_displayer_canvas.cc	Mon Oct 16 13:05:25 2006 +0000
     1.2 +++ b/graph_displayer_canvas.cc	Thu Oct 19 07:49:40 2006 +0000
     1.3 @@ -1,4 +1,5 @@
     1.4  #include "graph_displayer_canvas.h"
     1.5 +#include <lemon/random.h>
     1.6  #include <cmath>
     1.7  
     1.8  GraphDisplayerCanvas::GraphDisplayerCanvas(NoteBookTab & mainw) :
     1.9 @@ -261,7 +262,9 @@
    1.10    if(!was_redesigned)
    1.11      {
    1.12        NodeIt i((mytab.mapstorage).graph);
    1.13 -      double r=random();
    1.14 +
    1.15 +      double r=Random().getReal();
    1.16 +
    1.17        dim2::Point<double> init(init_vector_length*sin(r),init_vector_length*cos(r));
    1.18        moveNode(init.x, init.y, nodesmap[i], i);
    1.19        was_redesigned=true;