Пример #1
0
        /// <summary>
        /// Returns a member at random from the group.
        /// </summary>
        /// <param name="startIndex"></param>
        /// <param name="selectLength"></param>
        /// <returns></returns>
        public FlxBasic GetRandom(int startIndex = 0, int selectLength = 0)
        {
            if (selectLength == 0)
            {
                selectLength = Members.Count;
            }

            return(FlxG.GetRandom(
                       this.ToArray(), startIndex, selectLength) as FlxBasic);
        }