diff --git a/src/abstract_tree/tool.rs b/src/abstract_tree/tool.rs index ebb852e..8950a63 100644 --- a/src/abstract_tree/tool.rs +++ b/src/abstract_tree/tool.rs @@ -136,7 +136,7 @@ impl Tool { Value::Integer(random()) } else if values.len() == 2 { let mut rng = thread_rng(); - let range = values[0].as_int()?..values[1].as_int()?; + let range = values[0].as_int()?..=values[1].as_int()?; let random = rng.gen_range(range); Value::Integer(random)