diff --git a/src/main/java/latice/model/console/Rack.java b/src/main/java/latice/model/console/Rack.java index 0815b79..bd0db80 100644 --- a/src/main/java/latice/model/console/Rack.java +++ b/src/main/java/latice/model/console/Rack.java @@ -53,7 +53,7 @@ public class Rack { Tile tile; - for (int i = 0; i < 5-this.listRackTile.size() ; i++) { + for (int i = 0; i < 5-(this.listRackTile.size()-1) ; i++) { int index = (int)(Math.random()*( ((this.deck.getListTile()).size()-1)-0+1)+0); //(int)(Math.random()*(max-min+1)+min); tile = (this.deck.getListTile()).get(index);