Please use the "dart:math" library and its Random number generator
instead of using the Math.random() function from "dart:core". We will
in time be removing the Math class from the core library eventually.
http://api.dartlang.org/math/Random.html has the behaviour you generally want.
Thanks,
-Ivan
Thanks for the report. I just updated to the latest bleeding edge and I'm able to compile a small program with dart:math and Random. How did you download the SDK?
This is an issue with the stand-alone SDK built by the build bots. If you're working from a cloned repo, those libraries exist and the VM and dart2js can find them.
I use Random.nextDouble to calculate PI by loop 1000,000 times. The C version takes about 2 or 3 seconds. dart version takes more than 110s.