translate_f: add check for file corruption| choose4: fix picking a random line from a .txt file