EN605.607.81.SP22_ASDM_Project/back_end/src/random_helper.rs

7 lines
142 B
Rust
Raw Normal View History

use oorandom::Rand32;
use rand::prelude::*;
pub fn get_seeded_random() -> Result<Rand32, String> {
Ok(Rand32::new(thread_rng().gen()))
}