1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ArrayList tiles = new ArrayList(); int [] randomTiles = new int [ 10 ]; Random num = new Random(); for ( int x = 0 ; x < 81 ; x++) { tiles.add(x); } int not = 81 ; for ( int x = 0 ; x < 10 ; x++, not --) { int index = num.nextInt(not); randomTiles[x] = tiles.get(index); tiles.remove(index); } |

