mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
Add files via upload
This commit is contained in:
parent
5cf897c2ff
commit
670917c3cb
2 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue