This line isn't used indeed so looks like the rand_text can be deleted.