Files
mathgenerator/mathgenerator/funcs/deciToHexaFunc.py
2020-10-19 13:54:31 -04:00

11 lines
204 B
Python

from .__init__ import *
def deciToHexaFunc(max_dec=1000):
a = random.randint(0, max_dec)
b = hex(a)
problem = "Binary of " + str(a) + "="
solution = str(b)
return problem, solution