Xerobit

Random Sentence Generator

Each click of this random sentence generator builds 1 to 100 past-tense English sentences such as "The quiet baker reviewed the sculpture.", by filling grammar templates with words drawn at random from fixed lists. Simple sentences run 6 to 8 words and complex ones 15 to 18 words in the current build. The generator runs in your browser and nothing is uploaded.

Result

  1. The alert actor who eagerly polished an object stood along the path, although the task was hard.
  2. That tailor repaired that tool through the forest.
  3. Although that fast baker swiftly delivered the task, that small telescope remained against the wind.
  4. Although the task was hard, this new scientist eagerly delivered the small furniture below the surface.
  5. The curious sailor patiently inspected this bright telescope.

How to use the random sentence generator

  1. In the random sentence generator, enter how many sentences you want, a whole number from 1 to 100.
  2. Choose a style: simple (one clause), complex (clauses and phrases) or mixed (each sentence picks one of the two at random).
  3. Press Generate. Press it again for a new set; the output is never repeated on purpose.
  4. Copy the list into your mockup, test fixture or writing exercise.

How a sentence is built

The random sentence generator holds fixed word lists: 20 general subjects plus 10 vowel-initial ones, 20 verbs in the simple past, 20 general plus 10 vowel-initial objects, 20 plus 10 adjectives, 15 adverbs, 15 prepositional phrases such as "near the river" and 10 subordinate clauses such as "after the bell rang". Each sentence picks one template, then fills every slot with an independent random choice.

Simple style has 8 templates, for example article + adjective + subject + verb + article + object, which can yield "The tall chef calmly examined this modern blueprint." Complex style has 6 templates, including a relative clause ("who ... stood behind the wall"), a clause opener ("Although ...") and a compound ending ("..., and then quietly built another."). Mixed style flips a fair coin between the two sets for each sentence.

Why there are two sets of word lists

English uses "an" before a vowel sound, so the tool keeps separate lists. In vowel templates the article is "an" or "the", and the subject, adjective and object all start with a vowel (owl, eager, engine), which gives "An eager owl ..." and never "A eager owl". The general templates use "the", "this" or "that", which work before any word. Every sentence is capitalised and ends with a full stop, including complex sentences that open with an article.

Size of the output space

The simple template "article + adjective + subject + verb + article + object" alone has 3 x 20 x 20 x 20 x 3 x 20 = 1,440,000 possible sentences, so repeats inside a 100-sentence batch are rare but not impossible. Choices use crypto.getRandomValues reduced with a modulo, which is uniform enough for placeholder text; it is not a seeded generator, so a batch cannot be reproduced. Copy output you want to keep.

Limits and rejected input

  • A count below 1, above 100, negative, empty or non-numeric returns an error.
  • A fractional count such as 5.5 is rejected.
  • Sentences are always past tense, in the third person and about people, animals and objects, with no names, numbers or questions.
  • Meaning is accidental: "the cat built a telescope" is grammatical but not factual, so check output before publishing it.
  • The lists cannot be edited; use the random word generator for single words.

When to pick which style

StyleTypical lengthUse it for
Simple6 to 8 wordsShort labels, list items, reading drills
Complex15 to 18 wordsTesting line wrapping and truncation
Mixed6 to 18 wordsParagraph-shaped filler with uneven line lengths

For Latin filler see the Lorem Ipsum generator, and to measure what you produced use the word counter.

Worked examples

ExampleInputResult
Five mixed sentencesNumber of sentences: 5; Sentence style: mixedAlthough this glass painter slowly discovered the task, this new bridge remained outside the fence., An able athlete patiently cooked an elegant umbrella., An eager actor delivered the umbrella., Since the morning began, an idle explorer softly sketched the alert umbrella through the forest., The odd eagle softly measured an elegant equation.
Ten simple sentencesNumber of sentences: 10; Sentence style: simpleThis fast student carried this vehicle., The elegant architect sketched the image., This gardener calmly cataloged this slow machine., That fast chef polished that device., An open architect cooked the engine., The eagle firmly measured an urban example., That fast child studied the sculpture., This slow farmer examined the recipe., The owl painted an umbrella through the forest., That gardener gently assembled this modern sculpture.
Three complex sentencesNumber of sentences: 3; Sentence style: complexAfter the bell rang, that heavy farmer patiently studied this wooden telescope under the sky., The cat sketched this model within the walls until the work was done, and then firmly delivered another., If the weather held, the ancient pilot carefully sketched this dark pattern against the wind.

FAQ

Are the sentences always grammatical?

The structure is, because each word fills a slot of the right part of speech and articles match their word lists. The meaning can be odd, such as a baker who repaired a telescope.

Why are all verbs in the past tense?

The 20 verb entries are all simple past forms such as watched and built, so no subject-verb agreement is needed and every template works with every verb.

How many sentences can I generate at once?

From 1 to 100. Values outside that range, non-integers and empty fields return an error. Press Generate again for another batch.

Can the same sentence appear twice?

Yes, but rarely. One simple template alone allows 1,440,000 combinations, and there are 14 templates in all.

How long is a typical sentence?

Simple sentences are 6 to 8 words and complex ones 15 to 18 words. Mixed style gives either, about half each.

Can I get the same output again?

No. Words are picked with the browser's cryptographic random source and there is no seed, so save any batch you need.

Is the random sentence generator suitable for test data?

Yes for plain ASCII English text. It contains no accents, digits, emoji or markup, so add those separately if you need to test encoding.