Index: editor/util/debuggertest/pets.dart |
diff --git a/editor/util/debuggertest/pets.dart b/editor/util/debuggertest/pets.dart |
index 0d69058a09e63b08257b9d79b44d9fdfce59403a..29c04cce24d1475dc633881e1b6b3430164ec388 100644 |
--- a/editor/util/debuggertest/pets.dart |
+++ b/editor/util/debuggertest/pets.dart |
@@ -1,6 +1,8 @@ |
#library("pets"); |
+#import('dart:math'); |
+ |
final num MAX_CATS = 10; |
final SPARKY = const Cat("Sparky"); |
@@ -52,7 +54,8 @@ class Dog extends FloppyEars implements Animal { |
Date bornOn; |
Dog(this.name) { |
- fleaCount = (Math.random() * 10.0).round().toInt(); |
+ var rand = new Random(); |
+ fleaCount = rand.nextInt(10); |
bornOn = new Date.now(); |
} |