Function antithesis_sdk::random::get_random

source ·
pub fn get_random() -> u64
Expand description

Returns a u64 value chosen by Antithesis. You should not store this value or use it to seed a PRNG, but should use it immediately.

§Example

use antithesis_sdk::random;

let value = random::get_random();
println!("Random value(u64): {value}");