parameters: (nbits)
return_statement: return bytes2int(randomdata)
docstring: Reads a random integer of approximately nbits bits rounded up
      to whole bytes
docstring_summary: Reads a random integer of approximately nbits bits rounded up
      to whole bytes
docstring_tokens: Reads a random integer of approximately nbits bits rounded up to whole bytes
function: def read_random_int(nbits):
      """Reads a random integer of approximately nbits bits rounded up
      to whole bytes"""
  
      nbytes = ceil(nbits/8.)
      randomdata = os.urandom(nbytes)
      return bytes2int(randomdata)
function_tokens: def read_random_int ( nbits ) : nbytes = ceil ( nbits / 8. ) randomdata = os . urandom ( nbytes ) return bytes2int ( randomdata )