Index: samples/clock/balls.dart |
diff --git a/samples/clock/balls.dart b/samples/clock/balls.dart |
index bfb075ec9b7795d2ce30c56584c6ae80baa02614..9bf1d0ab2fc8e5470ee6beac165ad44d620d7275 100644 |
--- a/samples/clock/balls.dart |
+++ b/samples/clock/balls.dart |
@@ -118,7 +118,7 @@ class Ball { |
static final double RADIUS = 14.0; |
static double randomVelocity() { |
- return (Math.random() - 0.5) * INIT_VELOCITY; |
+ return (new Math.Random().nextDouble() - 0.5) * INIT_VELOCITY; |
} |
Element root; |