overlord_event_system/mechanics/util.rs
1//! Weighted/uniform random draw helpers over [`GameRng`].
2//!
3//! The implementations live in [`event_system::rng`] — they are generic over
4//! `GameRng` and std collections with nothing game-specific in them. Re-exported
5//! here so the `behaviors` ports keep their `mechanics::util::` paths, and so
6//! every caller draws RNG through the same index/weight arithmetic.
7
8pub use event_system::rng::{drain_random, get_random_element, rand_round, rand_weight};