def generate_random(number_of_bytes=None, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 r = {}
 try:
  random = conn.generate_random(number_of_bytes)
  r['random'] = random['Plaintext']
 except boto.exception.BotoServerError as e:
  r['error'] = __utils__['boto.get_error'](e)
 return r

def generate_random ( number_of_bytes = None , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) r = { } try : random = conn . generate_random ( number_of_bytes ) r [ 'random' ] = random [ 'Plaintext' ] except boto . exception . BotoServerError as e : r [ 'error' ] = __utils__ [ 'boto.get_error' ] ( e ) return r
generate a random string .