Skip to content
An extremely useful Lorem Ipsum generator!
Branch: master
Clone or download
Adam Semenenko
Latest commit 71e94d8 Jan 29, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src allow for custom Random, e.g. use SecureRandom Jan 29, 2018
.gitignore
README.md Update README.md Sep 13, 2016
build.gradle version bump Sep 13, 2016
license.txt adds license to source files Oct 21, 2015
pom.xml publish using: mvn clean deploy Sep 13, 2016

README.md

lorem

An extremely useful Lorem Ipsum generator for Java!

Getting Started:

You can get the latest release via maven:

<dependency>
	<groupId>com.thedeanda</groupId>
	<artifactId>lorem</artifactId>
	<version>2.1</version>
</dependency>

Alternatively, you can add this to gradle:

compile 'com.thedeanda:lorem:2.1'

Now prepare your implementation:

Lorem lorem = LoremIpsum.getInstance();

Sample Usage:

Words

lorem.getWords(5, 10);

Randomly generates between 5 and 10 words.

lorem.getParagraphs(2, 4);

Randomly generates between 2 and 4 paragraphs.

lorem.getHtmlParagraphs(2, 4);

Randomly generates between 2 and 4 paragraphs wrapped in <p> tags.

lorem.getTitle(2, 4);

Randomly generates a title of 2 to 4 words.

Names

lorem.getName();

Generates a random name.

lorem.getNameFemale();

Generates a random female name.

lorem.getNameMale();

Generates a random male name.

lorem.getFirstName();

Generates a random first name.

lorem.getLastName();

Generates a random last name.

Phone Numbers

lorem.getPhone();

Generates a phone number in the form: (800) 555-1212

Locations

lorem.getCity();

Generates a city name.

lorem.getStateFull();

Generates a state name.

lorem.getStateAbbr();

Generates a 2 letter state abbreviation.

lorem.getZipCode();

Generates a 5-digit zip code

lorem.getCountry();

Generates a country name

You can’t perform that action at this time.