From a6cb7f4f88f2471e6329298230bb64827c852348 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Sun, 28 Jan 2024 12:06:58 +0100 Subject: close but not there --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index edf6f2e..0c65830 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,7 +15,7 @@ pub mod emscripten; fn find_origin() -> (i16, i16) { let mut rng = rand::thread_rng(); - (rng.gen_range(100, 400), rng.gen_range(100, 400)) + (rng.gen_range(100..400), rng.gen_range(100..400)) } struct Line { @@ -74,8 +74,8 @@ fn main() { let mut rng = rand::thread_rng(); lines.shuffle(&mut rng); - let a = rng.gen_range(-7.0, 7.0); - let b = rng.gen_range(-7.0, 7.0); + let a = rng.gen_range(-7.0..7.0); + let b = rng.gen_range(-7.0..7.0); let mut pixels = Vec::new(); for i in (1000..200000).step_by(10) { -- cgit v1.2.3