2 ms·
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 matt
by chubbard 17y ago
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.