commit
f25b454c00
|
@ -11,4 +11,4 @@ documentation = "https://docs.rs/mapgen"
|
|||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
rand = "0.7"
|
||||
rand = "0.8"
|
||||
|
|
|
@ -41,7 +41,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn test_range_average() {
|
||||
let num_op = 1000;
|
||||
let num_op = 10000;
|
||||
let mut rng = StdRng::seed_from_u64(1000);
|
||||
let xs: Vec<usize> = (0..num_op).map(|_| rng.random_range(5, 10)).collect();
|
||||
let mean = xs.iter().sum::<usize>() / num_op;
|
||||
|
|
Loading…
Reference in New Issue
Block a user