function to get random alphanumeric strings