title: How to generate a number of n-bit in length using python?
body: <p>Looking at the various <a href="http://docs.python.org/2/library/random.html" rel="noreferrer">random functions</a> in the standard library, there isn't a way to generate numbers of <em>n-bit</em> length long.</p>
  
  <p>Is there any efficient function I can use to accomplish this?</p>