Use Lucky parameter with probability

后端 未结 0 1673
遇见更好的自我
遇见更好的自我 2021-01-28 20:46

I\'ve 3 entry inside an array

var prob = [0.3, 0.5, 0.2];

And I use the following code to get the "random with probability" value:

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