def probability_of_sum(total:int, dice1, dice2):

    """
    Brief: 
    Basic probability - Dice cast
    Suppose a pair of fair 6-sided dice are thrown. 
    What is the probability that the sum of the rolls is 6? (Answer as a simple fraction of integers)
    reference: https://statweb.stanford.edu/~susan/courses/s60/split/node65.html
    """

    n = dice1.shape[0]
    m = dice2.shape[0]

    comb = n * m
    count = 0

    for i in dice1:
        for j in dice2:
            sum = int(i + j)
            if sum == total:
                count += 1
    
    prob = count / comb
    
    return print("{:.2%}".format(prob))