rand
Random Number Generation (f64)
Pseudo-random number generation utilities using 32.32 fixed-point.
Functions
derive- Derive a new seed from an existing seed and entropyfixed_between- Random fixed-point in range [low, high)u64_between- Random u64 in range [low, high)fixed_normal_between- Normally distributed random (approximation)u64_normal_between- Normally distributed u64 (approximation)
Note
These are deterministic pseudo-random generators suitable for games and simulations, not for cryptographic purposes.
Fully qualified path: cairo_fp::f64::procgen::rand
Free functions
| derive | Derives a new seed by hashing the current seed with entropy. |
| fixed_between | Returns a pseudo-random fixed-point value in range [ low, high). The value is deterministic based on the seed. |
| u64_between | — |
| fixed_normal_between | — |
| u64_normal_between | — |
| _fixed_normal_between_loop | — |