I didn't multiply by 100, so the chance never appears. That is, the difference between the minimum and maximum stats is multiplied by 0.15 and compared to a random number [1; 100].
And it would also be good to remove +1 so that it is compared with [0; 99]. That would be fairer.
Thank you very much, I'm at home now and checked it myself. I ran tests with other values, already multiplied by 100.
Added after 18 hours 43 minutes
Has anyone played for a long time? Do the hero's touch abilities not disappear?
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...