Пример #1
0
        public static T TrigRandom()
        {
            var _tmpSeed = RandomSeed.Next(1, actualPower + 1);

            _currentValue = _tmpSeed;
            foreach (var keyValuePair in _Seeds)
            {
                if (keyValuePair.Item2 >= _tmpSeed)
                {
                    ClearSeed();
                    return(keyValuePair.Item1);
                }
            }

            ClearSeed();
            return(default(T));
        }