from __future__ import annotations

import random






class 		a__						:
					A     	=							6

					def __init__(   self				:	str   ):







							"""simple docstring"""






							SCREAMING_SNAKE_CASE_  :		Optional[Any]    				=   list(range(1,Dice.NUM_SIDES + 1   )   )






					def     __UpperCamelCase       (   self				:	List[str]   ):







							"""simple docstring"""






							return random.choice(self.sides   )







def 				_snake_case     (       lowerCAmelCase							:       int       ,			lowerCAmelCase							:       int = 2     ):
		"""simple docstring"""







		SCREAMING_SNAKE_CASE_  :		str    				=   [Dice() for i in range(lowerCAmelCase     )]
		SCREAMING_SNAKE_CASE_  :		str    				=   [0] * (len(lowerCAmelCase     ) * Dice.NUM_SIDES + 1)
		for _ in range(lowerCAmelCase     ):
				count_of_sum[sum(dice.roll() for dice in dices     )] += 1
		SCREAMING_SNAKE_CASE_  :		List[Any]    				=   [round((count * 1_0_0) / num_throws       ,			2     ) for count in count_of_sum]
		return probability[num_dice:]  # remove probability of sums that never appear


if __name__ == "__main__":
		import doctest

		doctest.testmod()

__lowerCamelCase :     List[Any]          =  {hex(i)[2:]: i for i in range(16)}  # Use [:2] to strip off the leading '0x'




def 				_snake_case     (       lowerCAmelCase							:       str     ):
		"""simple docstring"""







		SCREAMING_SNAKE_CASE_  :		Optional[Any]    				=   hex_string.strip().lower()
		if not hex_string:
				raise ValueError("Empty string was passed to the function"     )
		SCREAMING_SNAKE_CASE_  :		str    				=   hex_string[0] == "-"
		if is_negative:
				SCREAMING_SNAKE_CASE_  :		Optional[int]    				=   hex_string[1:]
		if not all(char in hex_table for char in hex_string     ):
				raise ValueError("Non-hexadecimal value was passed to the function"     )
		SCREAMING_SNAKE_CASE_  :		List[Any]    				=   0
		for char in hex_string:
				SCREAMING_SNAKE_CASE_  :		Tuple    				=   1_6 * decimal_number + hex_table[char]
		return -decimal_number if is_negative else decimal_number


if __name__ == "__main__":
		from doctest import testmod

		testmod()
