| Issue 156: | Math.random() can return 1 | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Snippet to reproduce the issue:
for(i in 1...100000) {
if(Math.random() == 1) {
trace("Math.random() returned 1, and that should be impossible.");
}
}
Obviously, this occurs randomly, but usually there's 2 to 6 '1' rolled on 100'000 rolls. It is inconsistant with the standard Haxe (and Flash) Math.random.
Feb 8, 2012
Project Member
#1
gameh...@gmail.com
Status:
Fixed
|