visigoth.limited_repeat_sequence¶
- visigoth.limited_repeat_sequence(values, max_repeats, random_state=None)[source]¶
Infinite generator with a constraint on number of repeats of each item.
- Parameters
- valueslist
Possible values for the sequence.
- max_repeatsint
Maximum number of times a given value can appear in a row.
- random_statenumpy RandomState, optional
Object to control random execution.