Skip to content

Commit 144c9af

Browse files
add comment
1 parent 904a3df commit 144c9af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/model/model.class.ts

+3
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ export class Model {
285285

286286
let partner = min + 1 == max ? min : Paul.chooseBetween(max, min, BIAS.REVERSE_BELL);
287287
while (chosen == partner) {
288+
// if chosen is same as partner
289+
// randomize until it isn't
290+
// this will work on condition: there are more than two choices in range.
288291
partner = Paul.chooseBetween(max, min, BIAS.REVERSE_BELL);
289292
}
290293

0 commit comments

Comments
 (0)