Esempio n. 1
0
        //=====================================================================================================||
        // Constructors
        //=====================================================================================================||
        /// <summary>
        /// Конструктор.
        /// </summary>
        /// <param name="width"> Количество линий. </param>
        /// <param name="height"> Максимальное значение в линии. </param>
        public Galton(int width, int height)
        {
            Width  = width.ExNotBelow(1, "Galton width");
            Height = height.ExNotBelow(1, "Galton height");

            Height.ExNotAbove(int.MaxValue - 1, "Galton height is too high");

            _desk = new int[Width];
        }