def random_objs(objs, album, number=1, time=None, equal_chance=False):
 if equal_chance:
  perm = _equal_chance_permutation(objs)
 else:
  perm = objs
  random.shuffle(perm)
 if time:
  return _take_time(perm, (time * 60), album)
 else:
  return _take(perm, number)

def random_objs ( objs , album , number = 1 , time = None , equal_chance = False ) : if equal_chance : perm = _equal_chance_permutation ( objs ) else : perm = objs random . shuffle ( perm ) if time : return _take_time ( perm , ( time * 60 ) , album ) else : return _take ( perm , number )
get a random subset of the provided objs .