Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I actually struggle to understand why people even use Math.random() when the Random class exists.


Don't need an import for Math.random(). Random is in java.util, while Math is in java.lang.


Alot of people probably look for Random but find Math.random().




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: