sim_random

Function sim_random 

Source
pub fn sim_random<T>() -> T
Expand description

Generate a random value using the thread-local simulation RNG.

This function provides deterministic randomness based on the seed set via set_sim_seed. The same seed will always produce the same sequence of random values within a single thread.

ยงType Parameters

  • T - The type to generate. Must implement the Standard distribution.

Generate a random value using the thread-local simulation RNG.