LuckByDice

An open-source package and algorithm rolling dice notations and handling luck.

"How can one quantity something as elusive as luck?"

This is a problem we originally developed a solution for a long time ago... It originally started as a set of formulas in an excel spreadsheet. Then it became a Lua script used in a video game released in back 2005. Next it became a C# library. And now we're supporting it as a PHP library, called LuckByDice.

Try it Out!

Make consecutive roll using a dice notation:

# Outcome Luck
0 19 0
1 19 1
2 18 1
3 20 1

Usage

Run dice notations using Docker:


Install using Composer: