Skip to main content

Pair

Type Alias Pair 

Source
pub type Pair = [char; 2];
Expand description

A character pair used as a Markov chain state.

The generator uses pairs of characters to determine what character should come next, making it a second-order Markov chain. For example, after seeing “th”, different characters have different probabilities (e is very likely, x is very unlikely).