<s> import random <EOL> import heapq <EOL> DICT_PATH = "<STR_LIT>" <EOL> WORD_COUNT = <NUM_LIT:4> <EOL> d_file = open ( DICT_PATH ) <EOL> wordq = [ ] <EOL> for line in d_file : <EOL> word = line . strip ( ) <EOL> rand_val = random . random ( ) <EOL> heapq . heappush ( wordq , ( rand_val , word ) ) <EOL> if len ( wordq ) > WORD_COUNT : <EOL> heapq . heappop ( wordq ) <EOL> print wordq </s>
