Skip to content

Commit

Permalink
2 file edited
Browse files Browse the repository at this point in the history
  • Loading branch information
Croc-Prog-github authored Jun 18, 2024
1 parent ba3b82b commit ca88a0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/Probability-Manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ class ProbabilityManager {

// Verifica che la somma delle probabilità sia 100
if (list.totalWeight > 100) {
throw new Error("The sum of the probabilities exceeds 100%");
throw new Error("The sum of the probabilities is greater than 100%");
} else if (list.totalWeight < 100) {
throw new Error("The sum of the probabilities is less than 100%");
}
}

Expand Down
4 changes: 3 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@

// Verifica che la somma delle probabilità sia 100
if (list.totalWeight > 100) {
throw new Error("The sum of the probabilities exceeds 100%");
throw new Error("The sum of the probabilities is greater than 100%");
} else if (list.totalWeight < 100) {
throw new Error("The sum of the probabilities is less than 100%");
}
}

Expand Down

0 comments on commit ca88a0d

Please sign in to comment.