How to make or generate a random hash code

I couldn’t find a hash generating how to so I’m just going to put what I designed out there.
It’s very simple.
Just edit the possible characters variable to whatever possibilities you want,
Then just edit that last letter # to however long you want the hash
In my case I have 26 as the final letter number, but adjust it to your liking.

Hope this helps someone out there