May-28-2020, 01:45 PM
FYI, I just tried the code below in the Python 2.7 online compiler, and it seems to work:
import random for i in range(100): number=random.randrange(1500) letters=sorted(random.sample('abcdefgh',4)) print(str(number) + ' ' + ','.join(letters))