Skip to main content

Module generate

Module generate 

Source
Expand description

Driver-independent parts of generation: dealing a hand of distinct programs from any driver’s generate, vary or breed.

Functions§

hand
Deal n programs that differ in at least one field and carry different names. make is called with a fresh seed derived from seed until each program differs from those before it; a maker that keeps repeating itself is nudged apart with Driver::vary. Names come from Driver::generated_name for character. Deterministic.
hand_seeded
hand, telling for each program the seed make made it from, so a caller can make it again. For that, a program whose own name (Driver::generated_name of its seed) is taken is made from another seed, not renamed; None for the rare one that had to be renamed or nudged apart all the same. Seeds are cut to mask (short seeds make short recipe codes); the first program is made from first when given.

Type Aliases§

Dealt
A dealt program, and the seed that makes it again when one does.