devela::num

Module rand

Source
Available on crate feature rand only.
Expand description

Random number generation.

This module defines several types:

  • RNG algorithms specialized for 8-bit devices: Xabc, Xyza8a, Xyza8b.
  • Classic XorShift algorithms and variations with a smaller state.

These RNGs differ from the recommendations in RngCore by implementing Copy and Default.

Structsยง

  • A 16-bit LCG pseudo-random number generator.
  • X ABC Algorithm Random Number Generator for 8-bit Devices.
  • The XorShift8 pseudo-random number generator.
  • A version of XorShift8 that allows customizing the shift values.
  • The XorShift16 pseudo-random number generator.
  • The XorShift32 pseudo-random number generator.
  • The XorShift64 pseudo-random number generator.
  • The XorShift128 pseudo-random number generator.
  • The XorShift128+ pseudo-random number generator.
  • The Xoroshiro128++ pseudo-random number generator.
  • A simple 8-bit pseudo-random number generator with 32-bit of state, based on the XorShift algorithm.
  • A simple 8-bit pseudo-random number generator with 32-bit of state, based on the XorShift algorithm.