diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2024-01-28 12:06:58 +0100 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2024-01-28 12:06:58 +0100 |
commit | a6cb7f4f88f2471e6329298230bb64827c852348 (patch) | |
tree | a95648a15831bf5f7f974a1df24e9695867bf5c0 /src/main.rs | |
parent | 02231403df6241d08ea61600713fc1565bb22956 (diff) |
close but not thereflake
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |