public static Randomyzer GetInstance() { if (_instance == null) { _instance = new Randomyzer(); } return(_instance); }
public Coordinate GetCoordEmptyCell() { Coordinate coordinate = null; Randomyzer random = Randomyzer.GetInstance(); do { coordinate = random.GetRandomCoordinate(_ocean.NumRows, _ocean.NumCols); } while (!_ocean.IsEmptyCell(coordinate)); return(coordinate); }