1a6693141SShuo Chen#!/usr/bin/python3 249cab51aSShuo Chen 3926c960eSShuo Chenimport numpy 449cab51aSShuo Chen 5a6693141SShuo Chenwords = 100*1000*1000 6a6693141SShuo ChenS = 1.0001 749cab51aSShuo Chen 8926c960eSShuo Chenoutput = open('random_words', 'w') 9926c960eSShuo Chen 10a6693141SShuo Chenfor x in range(words): 11a6693141SShuo Chen output.write("%x\n" % numpy.random.zipf(S)) 12