def extract_number(self):
		'''
		Extract a "tempered" number based on index-th value,
		calling generate_numbers every 624 vals.
		'''
		if (self.index == 0):
			self.generate_numbers()
		y = self.MT[self.index]
		y = y ^ (y >> 11)
		y = y ^ ( (y << 7) & 0x9d2c5680 )
	#	print "Y_2 " + str(y)
		y = y ^ ( (y << 15) & 0xefc60000 )
	#	print "Y_1 " + str(y)
		y = y ^ (y >> 18)
		self.index = 624 % (self.index + 1)

		return y
dataset/ETHPy150Open pbiernat/BlackBox/Chal4/mersenne.py/mtwister.extract_number/swapped operands of `%`