whyme_string_randomiser 0.1.0

feeds a string as input seed and returns n random numbers in the given range
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use whyme_string_randomiser::{get_random_char, get_seeded_random};

fn main() {
    let inp = "hello".to_string();

    println!(
        "Random number with seed {} is {:?}",
        inp,
        get_seeded_random(&inp, 0..10, 20)
    );

    println!("Random character in {} is {}", inp, get_random_char(&inp));
}