import random


def randomProblem(rows=10, columns=10, max=1000):
    """
    Generate a random matrix, with the specified number of rows and
    columns.  Each number is distributed uniformly at random between
    zero and the specified maximum.
    """

    result = []

    for i in range(rows):
        resultRow = []

        for j in range(columns):
            resultRow.append(random.randint(0, max))

        result.append(resultRow)

    return result