Math 2.0

Numerical analysis Definition

Pseudorandom number generator

Definition

A pseudorandom number generator is a tuple (S,s0,T,U,G)(S, s_0, T, U, G) where:

  1. SS is a finite set, the state space;
  2. s0∈Ss_0 \in S is the initial state, or seed;
  3. T ⁣:S→ST \colon S \to S is a map, the transition function;
  4. UU is a set, the output space, usually [0,1)[0, 1) or a set of integers {0,…,m−1}\set{0, \ldots, m-1};
  5. G ⁣:S→UG \colon S \to U is a map, the output function.

The generator produces the states si=T(si−1)s_i = T(s_{i-1}) for i≥1i \ge 1 and the output sequence ui=G(si)u_i = G(s_i) for i≥0i \ge 0.

Remarks

Example: S={0,…,7}S = \set{0, \ldots, 7}, T(s)=(5s+1) mod 8T(s) = (5s + 1) \bmod 8, U=[0,1)U = [0, 1), G(s)=s/8G(s) = s/8 and s0=0s_0 = 0; all five clauses hold, and the outputs are 0,0.125,0.75,0.875,0.5,0.625,0.25,0.3750, 0.125, 0.75, 0.875, 0.5, 0.625, 0.25, 0.375, then repeat. Non-example: the sequence of decimal digits of π\pi is not eventually periodic, because π\pi is irrational. It is not the output sequence of any such tuple, since a finite state space as in clause 1 forces the outputs to be eventually periodic. Since SS is finite, the sequence (si)(s_i) is eventually periodic, with period at most ∣S∣\abs{S}; if TT is a bijection it is purely periodic. The definition is purely structural; the quality of a generator is judged by its period, by the uniformity of tuples (ui,…,ui+k−1)(u_i, \ldots, u_{i+k-1}), and by statistical tests. Generators for cryptography must in addition be unpredictable from past outputs, which is a stronger requirement.

Further reading

  1. Web https://en.wikipedia.org/wiki/Pseudorandom_number_generator
About this page
TagJ1TZHNRV02
URIm2://J1TZHNRV02
Kinddefinition
WritingW0 stub
MSC65C10, 11K45
DefinesPseudorandom number generator

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.