Skip to content

Math.random() displays in the same order #2676

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

Closed
DartBot opened this issue Apr 21, 2012 · 2 comments
Closed

Math.random() displays in the same order #2676

DartBot opened this issue Apr 21, 2012 · 2 comments
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. closed-duplicate Closed in favor of an existing report

Comments

@DartBot
Copy link

DartBot commented Apr 21, 2012

This issue was originally filed by jailuthra6sep...@gmail.com


I used Math.random() to get a random integer from three integers - 0,1 or 2
It displays the integers in the same order every time I run it.
But when I compiled it into JavaScript, it worked flawlessly.

What steps will reproduce the problem?

  1. double a=3\*Math.random(); 
    

           var ch=a.floor();

  2. Print("$a") //In a Loop

@madsager
Copy link
Contributor

Added Area-VM, Triaged labels.

@whesse
Copy link
Contributor

whesse commented Apr 23, 2012

Added Duplicate label.
Marked as being merged into #2032.

@DartBot DartBot added Type-Defect area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. closed-duplicate Closed in favor of an existing report labels Apr 23, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

3 participants