lemon/hypercube_graph.h
changeset 2229 4dbb6dd2dd4b
parent 2223 590c1b663a27
child 2242 16523135943d
     1.1 --- a/lemon/hypercube_graph.h	Mon Oct 02 14:41:53 2006 +0000
     1.2 +++ b/lemon/hypercube_graph.h	Mon Oct 02 16:11:00 2006 +0000
     1.3 @@ -260,8 +260,8 @@
     1.4      /// HyperCubeGraph graph(DIM);
     1.5      /// dim2::Point<double> base[DIM];
     1.6      /// for (int k = 0; k < DIM; ++k) {
     1.7 -    ///   base[k].x = rand() / (RAND_MAX + 1.0);
     1.8 -    ///   base[k].y = rand() / (RAND_MAX + 1.0);
     1.9 +    ///   base[k].x = random.getReal();
    1.10 +    ///   base[k].y = random.getReal();
    1.11      /// } 
    1.12      /// HyperCubeGraph::HyperMap<dim2::Point<double> > 
    1.13      ///   pos(graph, base, base + DIM, dim2::Point<double>(0.0, 0.0));