阅读背景:

如何基于事件发生的概率在php中执行一个事件

来源:互联网 

i want something like this:

我想要这样的东西:

$chance = 40; //40%
if ( run the probability check script ) {
    echo "event happened"; //do the event
}
else {
   echo "event didn't happened";
}
$chan



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: