title: How to create random number within bounds in Java displayed as a binary value?
body: <p>I am able to generate Random Numbers with Random method. But I want to create random numbers that are displayed in a binary format. The numbers must be within a specific range.</p>
  
  <blockquote>
    <p>Random numbers should be between 5 and 10 digits, inclusive.</p>
  </blockquote>
  
  <p>E.g.: 011110, 0111100, 010110101.</p>