foundry_cheatcodes::utils

Function random_uint

Source
fn random_uint(
    state: &mut Cheatcodes,
    bits: Option<U256>,
    bounds: Option<(U256, U256)>,
) -> Result
Expand description

Helper to generate a random uint value (with given bits or bounded if specified) from type strategy.