Length matters most
Each extra character multiplies the number of possible passwords. A 20 character password with all four kinds of characters has about 131 bits of entropy. If a site limits length or characters, make it as long as allowed.
How it is made
Every character is picked uniformly at random from the characters you selected. If one of the selected kinds is missing, the password is drawn again, so you always get at least one of each.
When to use a passphrase instead
For passwords you must type or remember, such as the main password of your password manager, a passphrase of random words is easier and can be just as strong.