Skip to content

Commit

Permalink
limit y in randomize_position()
Browse files Browse the repository at this point in the history
  • Loading branch information
mazznoer committed Aug 13, 2024
1 parent 0d1941a commit b143f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl Lolcrab {

pub fn randomize_position(&mut self) {
self.x = 0;
self.y = fastrand::isize(..);
self.y = fastrand::isize(-999_999..999_999);
}

#[doc(hidden)]
Expand Down

0 comments on commit b143f9b

Please sign in to comment.