def random_number(self, min:int|str = 0, max:int|str = 65535, cnt:int|str = 1) -> str:
        """
        Return a random integer between min and max

        Args:
            min (int): The minimum value
            max (int): The maximum value
            cnt (int): The number of random numbers to return

        Returns:
            str: a json array with 1 to "count" random numbers in the format
            ["<random_number>"]
        """

        # Type-check the arguments
        try:
            min = int(min)
        except ValueError:
            raise ValueError("min must be an integer")
        try:
            max = int(max)
        except ValueError:
            raise ValueError("max must be an integer")
        try:
            cnt = int(cnt)
        except ValueError:
            raise ValueError("cnt must be an integer")

        # Ensure min is less than max
        if min > max:
            min, max = max, min
        
        # Test ranges
        if not (1 <= cnt <= 65535):
            raise ValueError("cnt must be between 1 and 65535")
        if not (0 <= min <= 65535):
            raise ValueError("min must be between 0 and 65535")
        if not (0 <= max <= 65535):
            raise ValueError("max must be between 0 and 65535")
        
        # Make random numbers
        random_numbers = []
        if isinstance(min, int) and isinstance(max, int):
            for _ in range(cnt):
                random_numbers.append(random.randint(min, max))
        else:
            for _ in range(cnt):
                random_numbers.append(random.uniform(min, max))

        return json.dumps(random_numbers)

        Return a random integer between min and max

        Args:
            min (int): The minimum value
            max (int): The maximum value
            cnt (int): The number of random numbers to return

        Returns:
            str: a json array with 1 to "count" random numbers in the format
            ["<random_number>"]
        
src/autogpt_plugins/random_values/random_values.py