<human>:  What is a good Python function to generate random binary numbers with certain number of bits? What is python function to generate binary numbers with a certain number of bit.
<bot>:)

# Enter the number of bits
bits = 10

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

#Example Output
# 0111100111

#Remember to inspect code for bugs.