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