zedisdog/chance

There is no license information available for the latest version (v0.0.1) of this package.

Probability draw

v0.0.1 2017-01-24 05:31 UTC

This package is auto-updated.

Last update: 2024-11-17 19:09:03 UTC


README

根据概率抽奖

需要给一个奖品权重数组

install

composer require zedisdog/chance

usage

$chance = new zedisdog/Chance($proArr);
$id = $chance->getRand();