Here you can find the source of xorShift(int x)
public static int xorShift(int x)
//package com.java2s; //License from project: Open Source License public class Main { public static int xorShift(int x) { x ^= (x << 6);//from w w w .ja va2s . c om x ^= (x >>> 21); x ^= (x << 7); return x; } }