生成一个指定长度和强度的随机密码。密码强度通过其包含的数字、特殊字符和大/小写字母数量来确定。
密码长度：12
数字数量：2
特殊字符数量：1
大写字母数量：2
A possible solution to generate a random password with the specified requirements:

1. Choose 2 random digits from 0 to 9
2. Choose 1 random special character from a set of special characters, such as "!@#$%^&*()_+-="
3. Choose 2 random uppercase letters from A to Z
4. Choose 7 random characters from a combination of digits, uppercase and lowercase letters, and special characters
5. Shuffle all the chosen characters randomly
6. Concatenate the shuffled characters into a string, which is the password

Here is some Python code that implements this solution:

```python
import random
import string

length = 12
num_digits = 2
num_special_chars = 1
num_uppercase = 2

# generate random digits
digits = ''.join(random.choice(string.digits) for _ in range(num_digits))

# generate random special character
special_chars = ''.join(random.choice(string.punctuation) for _ in range(num_special_chars))

# generate random uppercase letters
uppercase = ''.join(random.choice(string.ascii_uppercase) for _ in range(num_uppercase))

# generate remaining characters
remaining = ''.join(random.choice(string.ascii_letters + string.digits + string.punctuation) for _ in range(length - num_digits - num_special_chars - num_uppercase))

# shuffle all characters
password_chars = list(digits + special_chars + uppercase + remaining)
random.shuffle(password_chars)
password = ''.join(password_chars)

print(password)
``` 

Sample output: `N7&uGt#pZ9A$`