pub trait Random {
    // Required method
    fn random(rng: impl RngCore) -> Self;
}
Expand description

A value that can be randomly generated

Required Methods§

source

fn random(rng: impl RngCore) -> Self

Generate random value

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> Random for T

source§

impl<U: Random, const N: usize> Random for ScaledUnderlier<U, N>

source§

impl<const N: usize> Random for SmallU<N>