game/_incl_data/class/Battle/Helper.php

11 lines
155 B
PHP

<?php
namespace Battle;
class Helper
{
public static function getChanse(int $percent): bool
{
return mt_rand(0, 100) <= $percent;
}
}