human
generate random binary number with certain number of bits.
assistant
Here is a Python function to generate random binary numbers with certain number of bits

import numpy as np

def random_binary_number(bits):
        """
        Generate random binary number with certain number of bits.

        :param bits: The number of bits.
        :type bits: int
        :returns: The random binary number.
        :rtype: int
        """

        return np.random.randint(0, 2, bits)

# Enter the number of bits
bits = 10

# Calling the function
print((random_binary_number(bits)))

#Example Output
# [1 0 1 0 1 0 1 0 0 1]

#Remember to inspect code for bugs.