Add an accessor for a 'default' random generator #5221
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
core-2
library-math
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by sammcca...@google.com
new Random().nextDouble()
is much noisier than the old
Math.random()
For the common case where you don't need any particular seed or instance.
If an accessor for a 'default' Random instance was added to dart:math:
Random get random;
this would just be:
random.nextDouble()
The text was updated successfully, but these errors were encountered: