Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by Fero ( 13 years ago )
private void generateMines() {
for (int index = 0; index<mineCount; index++){
int randomRow = new Random().nextInt(getRowCount());
int randomColumn = new Random().nextInt(getColumnCount());
if (getTile(randomRow, randomColumn)!=null){
--index;
} else {
tiles[randomRow][randomColumn] = new Mine();
}
}
}
Revise this Paste
Parent: 62183
Children: 62186