Skip to content

Commit

Permalink
fixed +1 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Noxyntious committed Jun 3, 2024
1 parent a7062ce commit 7c2c562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fn main() {
let amount = args.count;
let mut i: i32 = 0;
let mut prevnum = 9999;
while i <= amount {
while i < amount {
let mut num = rand::thread_rng().gen_range(0..meows.len());
if num == prevnum {
if num > 3 {
Expand Down

0 comments on commit 7c2c562

Please sign in to comment.