[−][src]Module randomize::formulas
Various generator and conversion formulas. This module is a "junk drawer" of stuff.
For common usage of the library you do not need to read or understand anything here, except perhaps the float conversions as described in the crate root. Most of it is provided for sake of completeness only.
Constants
DEFAULT_PCG_INC | A suggested default increment for a PCG. |
DEFAULT_PCG_SEED | A suggested default seed for a PCG. |
PCG_MULTIPLIER_8 | The PCG multiplier for 8 bits of state |
PCG_MULTIPLIER_16 | The PCG multiplier for 16 bits of state |
PCG_MULTIPLIER_32 | The PCG multiplier for 32 bits of state |
PCG_MULTIPLIER_64 | The PCG multiplier for 64 bits of state |
PCG_MULTIPLIER_128 | The PCG multiplier for 128 bits of state |
Functions
f32_half_open_right |
|
f32_half_open_left |
|
f32_open |
|
f32_closed |
|
f32_closed_neg_pos |
|
f64_half_open_right |
|
f64_half_open_left |
|
f64_open |
|
f64_closed |
|
f64_closed_neg_pos |
|
jump_lcg8 | Gives the |
jump_lcg16 | Gives the |
jump_lcg32 | Gives the |
jump_lcg64 | Gives the |
jump_lcg128 | Gives the |
lcg8 | The |
lcg16 | The |
lcg32 | The |
lcg64 | The |
lcg128 | The |
pcg_core_state8 | Advances a PCG with 8 bits of state |
pcg_core_state16 | Advances a PCG with 16 bits of state |
pcg_core_state32 | Advances a PCG with 32 bits of state |
pcg_core_state64 | Advances a PCG with 64 bits of state |
pcg_core_state128 | Advances a PCG with 128 bits of state |
pkmn_colosseum | The LCG from a game with "colosseum" in its name. |
pkmn_gen4alt | The alternate LCG from the gen4 games. |
pkmn_gen3gen4 | The LCG from the gen3 and gen4 games. |
pkmn_gen5gen6 | The LCG from the gen5 and gen6 games. |
rxs_m_xs_128_128 | Permutation: RXS M XS |
rxs_m_xs_16_16 | Permutation: RXS M XS |
rxs_m_xs_32_32 | Permutation: RXS M XS |
rxs_m_xs_64_64 | Permutation: RXS M XS |
rxs_m_xs_8_8 | Permutation: RXS M XS |
sm64 | The Super Mario 64 PRNG. Only use this as a joke. |
xsh_rr_128_64 | Permutation: XSH RR |
xsh_rr_16_8 | Permutation: XSH RR |
xsh_rr_32_16 | Permutation: XSH RR |
xsh_rr_64_32 | Permutation: XSH RR |
xsh_rs_128_64 | Permutation: XSH RS |
xsh_rs_16_8 | Permutation: XSH RS |
xsh_rs_32_16 | Permutation: XSH RS |
xsh_rs_64_32 | Permutation: XSH RS |
xsl_rr_128_64 | Permutation: XSL RR |
xsl_rr_64_32 | Permutation: XSL RR |
xsl_rr_rr_128_128 | Permutation: XSL RR RR |
xsl_rr_rr_64_64 | Permutation: XSL RR RR |