diff --git a/noid.py b/noid.py index 6e0cade..2dfb8bc 100644 --- a/noid.py +++ b/noid.py @@ -74,6 +74,28 @@ class Minter(): self.oatop *= self.digitcount return self.oatop + def genid(self) -> str: + # 1. Check if the oacounter >= oatop + # -> noid are exhausted + # -> At this time, all our noid are considered as longterm + # -> At this tile, all our noid are not sequential, thus random + # 2. Get the size of saclist (active counters list) + # 3. if that size is less than 1 then no more active counters then no noid + # 4. pick at random an active counter + # - rand → int (index to use) + # 5. get its value + # 6. increment its value + # 7. increment oacounter + # 8. deal with an exhausted subcounter + # - if new value is more more or equal to the top value of this counter + # - remove this counter from the saclist + # - add this counter to the siclist + # 9. Generate the noid with a call to n2xdig() + # - Arguments + # - value + (index * percounter) + # - mask + # 10. return the noid + return "" if __name__ == "__main__": import doctest