<gh_stars>0
from .__init__ import *


def determinantToMatrix22(maxMatrixVal=100):
    a = random.randint(0, maxMatrixVal)
    b = random.randint(0, maxMatrixVal)
    c = random.randint(0, maxMatrixVal)
    d = random.randint(0, maxMatrixVal)

    determinant = a * d - b * c
    problem = f"Det([[{a}, {b}], [{c}, {d}]]) = "
    solution = f" {determinant}"
    return problem, solution

from .__init__ import *


def determinantToMatrix22(maxMatrixVal=100):
    a = random.randint(0, maxMatrixVal)
    b = random.randint(0, maxMatrixVal)
    c = random.randint(0, maxMatrixVal)
    d = random.randint(0, maxMatrixVal)

    determinant = a * d - b * c
    problem = f"Det([[{a}, {b}], [{c}, {d}]]) = "
    solution = f" {determinant}"
    return problem, solution