[Lemon-commits] [lemon_svn] alpar: r3010 - glemon/trunk
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 21:51:48 CET 2006
Author: alpar
Date: Sun Oct 22 11:24:15 2006
New Revision: 3010
Modified:
glemon/trunk/graph_displayer_canvas.cc
Log:
Fix usage of Random. (Random's doc should possibly be improved.)
Modified: glemon/trunk/graph_displayer_canvas.cc
==============================================================================
--- glemon/trunk/graph_displayer_canvas.cc (original)
+++ glemon/trunk/graph_displayer_canvas.cc Sun Oct 22 11:24:15 2006
@@ -263,9 +263,8 @@
{
NodeIt i((mytab.mapstorage).graph);
- double r=Random().getReal();
-
- dim2::Point<double> init(init_vector_length*sin(r),init_vector_length*cos(r));
+ dim2::Point<double> init(init_vector_length*rnd(),
+ init_vector_length*rnd());
moveNode(init.x, init.y, nodesmap[i], i);
was_redesigned=true;
}
More information about the Lemon-commits
mailing list