Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an accessor for a 'default' random generator #5221

Closed
DartBot opened this issue Sep 17, 2012 · 2 comments
Closed

Add an accessor for a 'default' random generator #5221

DartBot opened this issue Sep 17, 2012 · 2 comments
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

Comments

@DartBot
Copy link

DartBot commented Sep 17, 2012

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()

@sethladd
Copy link
Contributor

Removed Type-Defect label.
Added Type-Enhancement, Area-Library, Library-Math, Triaged labels.

@DartBot DartBot added Type-Enhancement area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-math labels Sep 17, 2012
@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug and removed triaged labels Feb 29, 2016
@lrhn lrhn added the core-m label Aug 11, 2017
@floitschG floitschG added core-2 and removed core-m labels Aug 31, 2017
@bkonyi
Copy link
Contributor

bkonyi commented Jun 27, 2018

Closing due to inactivity. If we plan on revisiting this, feel free to reopen.

@bkonyi bkonyi closed this as completed Jun 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

6 participants