Random generator taking literature as input.