Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rmccue
on April 22, 2011
|
parent
|
context
|
favorite
| on:
A common bug in published code
For those who haven't picked up the error: Math.random() returns a value between 0 and 1, and the typecasting floors the value.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: