3 ms·
for Java first hit in google 'java random' has counterexamples
by silon42 4y ago
for Java first hit in google 'java random' has counterexamples
- hinkley 4y agohttps://docs.oracle.com/javase/7/docs/api/java/lang/Math.html https://docs.oracle.com/javase/7/docs/api/java/lang/Math.htm... Random also exists, with a bunch of options including CSPRNG. But if you’re just simulating a die roll, Math.random is sufficient unless you’re writing gambling software.