Content deleted Content added
MichaelMaggs (talk | contribs) Adding local short description: "Pseudorandom number generator", overriding Wikidata description "pseudorandom number generator" |
Tags: Reverted Visual edit |
||
Line 25:
Here, the algorithm is rendered in [[Python 3|Python 3.12]].
<syntaxhighlight lang="python" line="1">
already_seen = set()
counter = 0
Line 37 ⟶ 36:
print(f"#{counter}: {number}")
print(f"We began with {
f" have repeated ourselves after {counter} steps"
f" with {number}.")
|