Pedro Barbosa’s pioneering work introduced computer-generated literature (CGL) in Portugal in 1975. Having worked with Abraham A. Moles at the University of Strasbourg, Barbosa published three theoretical-practical volumes of his programming experiences with the FORTRAN and BASIC languages. These volumes deal with combinatorics and randomness, developing algorithms able to ally computing and literary production, bearing in mind a perspective of computational text theory.