RubyGems Navigation menu

chansu 0.1.3

Chansu is a Ruby DSL for working with randomness and probability. It provides helpers like `chance("35%")`, `dice(6, 3)`, and RPG-style aliases such as `d20` and `d100`. It also includes higher-level constructs like `often { ... }`, `rarely { ... }`, and `until_success` for expressive probabilistic logic. Useful for games, simulations, and playful Ruby experiments.

Gemfile:
=

install:
=

Versions:

  1. 0.1.3 September 26, 2025 (84 KB)
  2. 0.1.2 September 25, 2025 (43 KB)
  3. 0.1.1 September 25, 2025 (23 KB)
  4. 0.1.0 September 25, 2025 (12 KB)

Owners:

Pushed by:

Authors:

  • Santiago Calderon

SHA 256 checksum:

=

Total downloads 896

For this version 300

Version Released:

License:

MIT

Required Ruby Version: >= 3.2.0

Links: