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 20 0
1 24 1
2 20 1
3 22 2


Run dice notations using Docker:

Install using Composer: