def asset_type():
 asset_type_choices = ((95, 'asset'), (100, 'video'))
 d100 = random.randint(0, 100)
 for choice in asset_type_choices:
  if (d100 <= choice[0]):
   return choice[1]
 return asset_type_choices[(-1)][1]

def asset_type ( ) : asset_type_choices = ( ( 95 , 'asset' ) , ( 100 , 'video' ) ) d100 = random . randint ( 0 , 100 ) for choice in asset_type_choices : if ( d100 <= choice [ 0 ] ) : return choice [ 1 ] return asset_type_choices [ ( - 1 ) ] [ 1 ]
pick an asset type at random .