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

For one bit entropy go with:

new Random().nextBoolean()

Never mind gjm11's response unless your doing things with crypto and such where same seed problem matters.

Java's Random api is quite nice, but people screw it up by not understanding the options.



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

Search: