nimegeneratorpkg/globals

    Dark Mode
Search:
Group by:

Types

GenerationRules = object
  probability*: Probability
  generationCicles*: tuple[min, max: int] ## Generation cicles are NOT the length of a string, as some cicles may
                                          ## result in the addition of multiple chars!
  maxCharsWithoutVowel*: Option[int]
Probability = tuple[oftenCeil, rarelyFloor: float, ## Letter type probability floor and ceiling (between is default)
                    formables: float]

Consts

defaultGenerationRules = (probability: (0.6, 0.2, 0.1),
                          generationCicles: (2, 10),
                          maxCharsWithoutVowel: (val: 5, has: true))