Here’s the translation of the Go random numbers example to Java, formatted in Markdown suitable for Hugo:
Java’s java.util.Random class provides pseudorandom number generation.
For example, nextInt(100) returns a random int n, 0 <= n < 100.
nextDouble() returns a double f, 0.0 <= f < 1.0.
This can be used to generate random doubles in other ranges, for example 5.0 <= f' < 10.0.
If you want a known seed, create a new Random object with a specific seed. In Java, we use a single long value as a seed, unlike the two uint64 numbers used in the original example.
Some of the generated numbers may be different when you run the sample.