def integer_to_binarylist(num, binlen=0, strq=False):
    """
    Convert an integer number to a binary number in a form of a list.

    Parameters
    ----------
    num : int
        Integer number.
    binlen : int
        Length of a list containing digits of a binary number.
    strq : bool
        If true then returns a string instead of a list.

    Returns
    -------
    list
        A list containing digits of a binary number.
    """
    value = format(num, '0' + str(binlen) + 'b')
    rez = value if strq else list(map(int, str(value)))
    return rez
