We introduce a new codification on a time series that combines permutations and another symbol containing quantitative information. With these new codes, we construct a new test to determine whether a time series is independent and identically distributed. We compare our results with those obtained with tests based only on permutations. Our results show that the new test produces better results than those based only on permutations.