summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
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) {