XOR Shift

This algorithm generates a random number.



									unsigned int x = 548787455, y = 842502087, z = 3579807591, w = 273326509;

static unsigned int XORShift() {
	unsigned int t = x ^ (x << 11);
	x = y; y = z; z = w;
	return w = w ^ (w >> 19) ^ t ^ (t >> 8);
}
								


Example

									unsigned int value = XORShift();
								


Output

									2664865143