encyclopegia.org

Full cycle

In a pseudorandom number generator (PRNG), a full cycle or full period is the behavior of a PRNG over its set of valid states. In particular, a PRNG is said to have a full cycle if, for any valid seed state, the PRNG traverses every valid state before returning to the seed state, i.e., the period is equal to the cardinality of the state space. The restrictions on the parameters of a PRNG for it to possess a full cycle are known only for certain types of PRNGs, such as linear congruential generators and linear-feedback shift registers. There is no general method to determine whether a PRNG algorithm is full-cycle short of exhausting the state space, which may be exponentially large compared to the size of the algorithm's internal state.

In a pseudorandom number generator (PRNG), a full cycle or full period is the behavior of a PRNG over its set of valid states. In particular, a PRNG is said to have a full cycle if, for any valid seed state, the PRNG traverses every valid state before returning to the seed state, i.e., the period is equal to the cardinality of the state space. The restrictions on the parameters of a PRNG for it to possess a full cycle are known only for certain types of PRNGs, such as linear congruential generators and linear-feedback shift registers. There is no general method to determine whether a PRNG algorithm is full-cycle short of exhausting the state space, which may be exponentially large compared to the size of the algorithm's internal state. ==Example 1 (in C/C++)== Given a random number seed that is greater or equal to zero, a total sample size greater than 1, and an increment coprime to the total sample size, a full cycle can be generated with the following logic. Each nonnegative number smaller than the sample size occurs exactly once. unsigned int seed = 0; unsigned int sample_size = 3000; unsigned int generated_number = seed % sample_size; unsigned int increment = 7; for (unsigned int iterator = 0; iterator ==Example 1 (in Python)== Generator that goes through a full cycle def cycle(seed: int, sample_size: int, increment: int): nb = seed for i in range(sample_size): nb = (nb + increment) % sample_size yield nb Example values seed = 17 sample_size = 100 increment = 13 Print all the numbers print(list(cycle(seed, sample_size, increment))) Verify that all numbers were generated correctly assert set(cycle(seed, sample_size, increment)) == set(range(sample_size)) ==See also== Linear congruential generator Xorshift ==References==

References

  1. Enhanced pseudorandom number generator based on Blum-Blum-Shub and elliptic curves · retrieved 2026-11-21 · rev 1374394748
    Cite this reference

    MLA "Enhanced pseudorandom number generator based on Blum-Blum-Shub and elliptic curves." Omorog, Challiz D. 2026-11-21. https://en.wikipedia.org/wiki/Bibcode_(identifier). Accessed 24 November 2026.

    Chicago "Enhanced pseudorandom number generator based on Blum-Blum-Shub and elliptic curves." Omorog, Challiz D. 2026-11-21. https://en.wikipedia.org/wiki/Bibcode_(identifier).

    APA Omorog, Challiz D. (2026). Enhanced pseudorandom number generator based on Blum-Blum-Shub and elliptic curves. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Bibcode_(identifier)

Cite this article

MLA

"Full cycle." encyclopegia.org, 2026, https://encyclopegia.org/wiki/full-cycle. Accessed 24 November 2026.

Chicago

"Full cycle." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/full-cycle.

APA

encyclopegia.org. (2026). Full cycle. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/full-cycle

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

carbon cycle

stub · references available

business cycle

stub · references available

carbonate–silicate cycle

stub · references available

Calvin cycle

stub · references available

Full Dark, No Stars

stub · references available

cycle

stub · references available

Cycle of the months

stub · references available

full-harness

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1374394748 · 0.5 · snapshot enwiki-001374394748

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.