https://github.com/slmt/text-generator
https://github.com/slmt/text-generator
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/slmt/text-generator
- Owner: SLMT
- Created: 2024-05-12T06:13:27.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-12T06:13:49.000Z (about 2 years ago)
- Last Synced: 2025-08-25T11:59:41.999Z (9 months ago)
- Language: Rust
- Size: 128 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Random Text Generator
A simple program to generate text files based on a set of words (in `words.txt`). Note that it will not generate any grammatically accurate sentence. It only shuffles and repeats the given words.
## How to Use?
With Rust installed, runs:
```
> cargo run
```
Then, you will see the output files in `/out`.
## What Did It Just Do?
It generates the text files using the following process:
1. Randomly select 25 words from `words.txt` to form a word set.
2. Create an output directory `/out`
3. Generate each output file in `/out` by randomly selecting 1000 words from the word set (could be repeated).