Create a gist now

Instantly share code, notes, and snippets.

"Hello, world!" in Java
import java.util.Random;
class X {
public static void main(String[] s) {
byte[] a = new byte[6], b = new byte[6];
new Random(0x437950CAAB99L).nextBytes(a);
new Random(0xD6FD03B08D76L).nextBytes(b);
System.out.println(new String(a) + " " + new String(b));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment