$ composer require austriannoah/chancesapi
or just adding this to your composer.json
{
"require": {
"austriannoah/chancesapi": "dev-main"
}
}
Chances::chance("fifty-fifty", function () {
// use this for success
}, function () {
// use this for failure
});