I needed a simple random sentence generator (for english words/sentences, and in java) and I couldn’t find anything simple and with a small footprint. So I wrote it my self. The need for this arose from me being tired of seeing same ‘this is a title’, ‘some description’ and so on test strings in my code. Also I’m allergic to Lorem Ipsum. So here is a link to it:

Random sentences @ Maven Central

And for the impatient:

 

<dependency>
    <groupId>se.emirbuc.randomsentence</groupId>
    <artifactId>random-sentence-generator</artifactId>
    <version>0.0.7</version>
</dependency>

 

It’s very simple and creates sentences like:

A blade woke through some weapon into any hallway fancyed a dancer.

or

One scorpion returned since any regret through a underclothes leaped any noise.

Makes tests a bit more fun to write. When I find some more spare time I’ll add simple word generation and maybe even articles.

Leave a Reply

Your email address will not be published. Required fields are marked *