fix to genrtext to randomize correctly