A TypeScript library to generate random stuff : numbers, strings and more. Also provide some utilities.
This library aims to be a "complete" toolset for Procedural generation. I'm using it to generate content for tabletop RPGs. Therefore it includes lot of functionnality you might see in other packages but thanks to tree shaking and 0-dependencies, you only pay for what you use.
Via npm install rollthat
or yarn add rollthat
.
See docs/
folder for API usage :
- Typescript types : Types
- Numbers, dices : Primitives
- Strings : Strings
- Lists of items : Lists
- Markov strings : Markov
You might also have a look at the cookbook for recipes or inspiration.
Feel free to open a pull request.