I am currently running a URL abbreviation website http://nn.pe and using a 6 char random hash with this code,
$charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; return substr(str_shuffle($charset), 0, 6);
I was wondering how many different lines exist with these characters and integers?
You donβt have to be precise, only within a million, I think.
source share