import random


def checkMissPlayer(defender):
	"""

	Returns a boolean token: if player missed or not.

	If defenders AC (Armor Class) is above players hit the token will evaluate to False,
	and the player will respectively miss.

	"""

	global currPlayerHitToken
	missChance = random.randrange(0, 25)

	if missChance <= defender:
		currPlayerHitToken = False
		return currPlayerHitToken
	else:
		currPlayerHitToken = True
		return currPlayerHitToken