Dominion.ListOfCards.NumberBetweenInclusive C# (CSharp) 메소드

NumberBetweenInclusive() 개인적인 정적인 메소드

private static NumberBetweenInclusive ( Random random, int lowerBoundInclusive, int upperBoundInclusive ) : int
random System.Random
lowerBoundInclusive int
upperBoundInclusive int
리턴 int
        private static int NumberBetweenInclusive(Random random, int lowerBoundInclusive, int upperBoundInclusive)
        {
            int count = upperBoundInclusive - lowerBoundInclusive + 1;
            return random.Next(count) + lowerBoundInclusive;
        }