def METHOD_NAME(theList):
    if isinstance(theList, list):
        n = len(theList)
        nmo = n - 1
        numIter = int(n * math.log(n))
        for x in range(numIter):
            idx1 = random.randint(0, nmo)
            idx2 = random.randint(0, nmo)
            while idx1 == idx2:
                idx1 = random.randint(0, nmo)
                idx2 = random.randint(0, nmo)
            theList[idx1], theList[idx2] = theList[idx2], theList[idx1]