While working on my current project I was needed to generate a unique random string for an email confirmation. It’s a pretty common task and it has a bunch of simple solutions.
But I wanted it to be really random and flexible. I have ended with a helper with static functions which I want to share.