I want to generate a random password that has the following pattern:
Capital, small, number, dash, capital, small, number, special charachter.
Example:
Ab1-Cd2$
I have put all the special characters in an array that I randomly pick, so I have that part figured out. But I have no clue of how to do the other part. Any suggestion?