diff options
author | 2020-09-10 08:43:47 -0700 | |
---|---|---|
committer | 2020-09-10 08:43:47 -0700 | |
commit | 189d2e3714cb532f00921d11a9908b39ca1d7955 (patch) | |
tree | 86f85c4b93e8f544a9148b629f7fb8cb16395076 | |
parent | Update bot/exts/evergreen/conversationstarters.py (diff) |
Update bot/utils/randomization.py
Co-authored-by: Dennis Pham <[email protected]>
-rw-r--r-- | bot/utils/randomization.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bot/utils/randomization.py b/bot/utils/randomization.py index 063d7e1f..8f47679a 100644 --- a/bot/utils/randomization.py +++ b/bot/utils/randomization.py @@ -4,7 +4,11 @@ import typing as t class RandomCycle: - """Cycling through jumping to random indexes in an iterable.""" + """ + Cycles through elements from a randomly shuffled iterable, repeating indefinitely. + + The iterable is reshuffled after each full cycle. + """ def __init__(self, iterable: t.Iterable) -> None: self.iterable = list(iterable) |