public void GetTrainerStone() { int stone = NeuronHelper.GetRand(1, 3); NeuronHelper.Write(stone.ToString() + " "); _countStone -= stone; }
public bool GetNeuronValue() { try{ if (_list.Count == 0) { throw new Exception("Нейрон не инициализирован."); } _index = NeuronHelper.GetRand(0, _list.Count - 1); } catch (Exception e) { NeuronHelper.Write(e.Message); Application.Exit(); } return(_list[_index]); }