Skip to main content

Module random

Module random 

Source
Expand description

This module contains utilities for random number generation.

Modules§

gaussian
This module contains the gaussian random number generator.
legacy_random
This module contains the legacy random number generator implementation.
name_hash
Precomputed name hashes for positional random seeding.
worldgen_random
This module contains vanilla’s feature-decoration WorldgenRandom wrapper.
xoroshiro
This module contains the xoroshiro random number generator.

Enums§

RandomSource
A source of random numbers.
RandomSplitter
A random number generator that can be split.

Traits§

PositionalRandom
A trait for positional random number generators.
Random
A trait for random number generators.

Functions§

get_seed
Gets a seed from a position.