Pentomino tiling: Difference between revisions

Content added Content deleted
m (→‎{{header|Java}}: correction)
m (→‎{{header|Java}}: rand doesn't have to be global)
Line 41: Line 41:


static final char[] symbols = "FILNPTUVWXYZ-".toCharArray();
static final char[] symbols = "FILNPTUVWXYZ-".toCharArray();
static final Random rand = new Random();


static final int nRows = 8;
static final int nRows = 8;
Line 52: Line 51:


public static void main(String[] args) {
public static void main(String[] args) {
Random rand = new Random();


for (int r = 0; r < nRows; r++)
for (int r = 0; r < nRows; r++)