Answer:
Dependent.
Step-by-step explanation:
You did not return the name into the hat, so there is technically a "higher" probability to obtain the next name.
For example, if there were 5 names inside the hat, each one technically would have a 20% chance of obtaining a name.
If you did not return the name into the hat, there would only be 4 names left, which means that it would increase to a 25% chance of obtaining a name that is still inside the name.
The chance of obtaining the other name's chance, therefore, is dependent on the first one being taken out.