Added functionality to specify a custom dictionary for GenerateRandomString()