Line wrappings, and more random generation