def get_trait(flowery: bool = False,
              rng: random.Random | None = None) -> str:
  """Get a random personality trait from a preset list of traits.

  Args:
    flowery: if True then use complex and flowery traits, if false then use
      single word traits.
    rng: a random number generator.

  Returns:
    trait: a string
  """
  if rng is None:
    rng = random.Random()
  if flowery:
    return rng.choice(FLOWERY_TRAITS)
  else:
    return rng.choice(TRAITS)
Get a random personality trait from a preset list of traits.

  Args:
    flowery: if True then use complex and flowery traits, if false then use
      single word traits.
    rng: a random number generator.

  Returns:
    trait: a string
  
examples/deprecated/modular/environment/modules/player_traits_and_styles.py