Add files via upload

This commit is contained in:
tiera3 2024-10-02 14:54:10 +10:00 committed by GitHub
parent 5cf897c2ff
commit 670917c3cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -22,6 +22,8 @@ public class CardRun extends Rotater<String> {
// assert this.numItems() % sLen == 0;
}
// randomly choose a stripe width between 2 & 5 (inclusive)
// ToDo: when data available, use different weightings for different widths
private int nextWidth() {
return 2+ RandomUtil.nextInt(4);
}

View file

@ -15,7 +15,7 @@ import java.util.List;
public class Rotater<T> {
private final List<T> items;
private int position, stripeLen = 0, stripeWidth, stripeDepth;
private int position;
public Rotater(T item) {
this(true, item);