Module cubecl_common::rand
source · Expand description
Rand module contains types for random number generation for non-std environments and for std environments.
Structs§
- The standard RNG. The PRNG algorithm in
StdRng
is chosen to be efficient on the current platform, to be statistically strong and unpredictable (meaning a cryptographically secure PRNG).
Traits§
- An automatically-implemented extension trait on
RngCore
providing high-level generic methods for sampling values and other convenience methods. - A random number generator that can be explicitly seeded.
Functions§
- Generates random data from a thread-local RNG.
- Returns a seeded random number generator using entropy.