XOR Shift

This algorithm generates a random number.



									private static uint x = 548787455, y = 842502087, z = 3579807591, w = 273326509;

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


Example

									uint value = XORShift();
								


Output

									2664865143