Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
calpaterson
on April 22, 2011
|
parent
|
context
|
favorite
| on:
A common bug in published code
I actually struggle to understand why people even use Math.random() when the Random class exists.
nostrademons
on April 22, 2011
|
next
[–]
Don't need an import for Math.random(). Random is in java.util, while Math is in java.lang.
Dilpil
on April 22, 2011
|
prev
[–]
Alot of people probably look for Random but find Math.random().
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: