
    In a bank's fraud detection system, develop a function that identifies the next possible fraudulent transaction amount by finding the smallest number larger than the current transaction amount that can be created by rearranging its digits. This pattern recognition helps detect when fraudsters attempt to bypass security by subtly modifying transaction values while keeping the same digits.
    

    
def rearrange_bigger(n):
    """
    In a bank's fraud detection system, develop a function that identifies the next possible fraudulent transaction amount by finding the smallest number larger than the current transaction amount that can be created by rearranging its digits. This pattern recognition helps detect when fraudsters attempt to bypass security by subtly modifying transaction values while keeping the same digits.
    

    """
def rearrange_bigger(n):
    """
    In a bank's fraud detection system, develop a function that identifies the next possible fraudulent transaction amount by finding the smallest number larger than the current transaction amount that can be created by rearranging its digits. This pattern recognition helps detect when fraudsters attempt to bypass security by subtly modifying transaction values while keeping the same digits.
    

    """
    nums = list(str(n))
    for i in range(len(nums) - 2, -1, -1):
        if nums[i] < nums[i + 1]:
            z = nums[i:]
            y = min(filter(lambda x: x > z[0], z))
            z.remove(y)
            z.sort()
            nums[i:] = [y] + z
            return int(''.join(nums))
    return False