rollthat
v1.3.0
Published
An library to generate random stuff
Downloads
2
Readme
Rollthat
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.
Install
Via npm install rollthat
or yarn add rollthat
.
Documentation
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.
Contribute
Feel free to open a pull request.