/ Published in: Java
From Java Concurrency in practice
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
static int xorShift(int y) { y ^= (y << 6); y ^= (y >>> 21); y ^= (y << 7); return y; }