Expand description
Small query language for pseudorandomness
See https://github.com/Zheoni/rng-query for the syntax and CLI.
Usage as a lib
rng-query
is mainly the CLI app, so this lib is not the main objective. I
will try to follow semver but for the lib it’s not a
guarantee, so you may want to pin a specific version.
Run a whole input with run
or manage line by line with State
and it
methods.
All Display
implementations of the crate may output ANSI color codes.
Use something like anstream if you dont want
colors.
Structs
- Sample from an interval
- Result of a dice roll evaluation
- Customize the separators used
- Query interpreter
- Output of a query
Enums
- Result of tossing a coin
- Entry result
- Query error
Functions
- Run a whole “program”
Type Aliases
- Float type used in the interval
- Int type used in the interval