def rand_name(name='', prefix=None):
 randbits = str(random.randint(1, 2147483647))
 rand_name = randbits
 if name:
  rand_name = ((name + '-') + rand_name)
 if prefix:
  rand_name = ((prefix + '-') + rand_name)
 return rand_name

def rand_name ( name = '' , prefix = None ) : randbits = str ( random . randint ( 1 , 2147483647 ) ) rand_name = randbits if name : rand_name = ( ( name + '-' ) + rand_name ) if prefix : rand_name = ( ( prefix + '-' ) + rand_name ) return rand_name
generate a random name that includes a random number .