package
1.21.12
Repository: https://github.com/aura-studio/boost.git
Documentation: pkg.go.dev

# Functions

Float64 picks a random value in the specified ramge [0, 1).
Int63n picks a random value in the specified ramge [0, n).
Intn picks a random value in the specified ramge [0, n).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Create a new Pcg32 with the given seed.
Create a new Pcg32 with the given seed and stream.
Create a new Pcg64 with the given high and low bits of seed.
Create a new Pcg64 with the given high and low bits of seed and stream.
No description provided by the author
No description provided by the author
No description provided by the author
PR rands yes or no by probability.
RandFloat64 picks a random value in the specified ramge [0, 1).
RandInt63n picks a random value in the specified ramge [0, n).
RandIntn picks a random value in the specified ramge [0, n).
RandPR rands yes or no by probability.
RandRangeFloat64 picks a random value in the specified range [s, e).
RandRangeInt63n picks a random value in the specified ramge [s, e].
RandRangeIntn picks a random value in the specified ramge [s, e].
RandShuffle shuffles the specified slice.
RandUnrepeated picks unrepeated random values in the specified object by weight.
RandWeight picks a random value in the specified slice by weight.
WeightMap picks a random value in the specified map by weight.
RangeFloat64 picks a random value in the specified range [s, e).
RangeInt63n picks a random value in the specified ramge [s, e].
RangeIntn picks a random value in the specified ramge [s, e].
Shuffle shuffles the specified slice.
Unrepeated picks unrepeated random values in the specified object by weight.
Weight picks a random value in the specified slice by weight.
WeightMap picks a random value in the specified map by weight.
Take the highest 37 bits, xor the top half with the bottom, then use the top 5 to randomly rotate the next 32 (which we return).
Xor the state's top bits with the bottom and randomly rotate them based on the highest 6 bits.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Pcg32 uses the top 37 bits of its 64 bit LCG, XOR'ing the highest half with the lowest, and then randomly rotating the lower 32 of them (which are returned).
Pcg64 uses XOR of high and low bits combined with random shift.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author