Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Unified Diff: samples/clock/balls.dart

Issue 10829459: Deprecate Math object in corelib in favor of dart:math library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/chat/chat_server_lib.dart ('k') | samples/clock/clock.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « samples/chat/chat_server_lib.dart ('k') | samples/clock/clock.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698