Its actually your code. I tried to modify it but no change. When I changed coma in between apostrophes it just changed the thing between letters. Nothing happened with numbers.
import random for i in range(100): number=random.randrange(1500) letters=sorted(random.sample('abcdefgh',4)) print(number,','.join(letters))