calculate percentage and execute a function according to the percentage

前端 未结 0 1341
别跟我提以往
别跟我提以往 2020-12-08 10:26

I want to make a function have a certain chance of being executed, this chance is in percentage, and it is not fixed, it comes from numbers, and they can be from 2 to 100 or

相关标签:
回答
  • 消灭零回复
提交回复
热议问题