求一个抽奖的算法,在下面数组的8个对象中抽奖,根据后面的中奖概率,返回a,b,c中奖概率这个可以不遵循全加起来为100%[{"a",20.00%},{"b",20.00%},{"c",20.00%},{"d",10.00%},{"e",10.00%},{"f",10.00%},{"g",10.00%},{"h",0.05%},]
[{"a",20.00%},{"b",20.00%},{"c",20.00%},{"d",10.00%},{"e",10.00%},{"f",10.00%},{"g",10.00%},{"h",0.05%},]
{"a",20.00%},{"b",20.00%},{"c",20.00%},{"d",10.00%},{"e",10.00%},{"f",10.00%},{"g",10.00%},{"h",0.05%},]
{"b",20.00%},{"c",20.00%},{"d",10.00%},{"e",10.00%},{"f",10.00%},{"g",10.00%},{"h",0.05%},]
{"c",20.00%},{"d",10.00%},{"e",10.00%},{"f",10.00%},{"g",10.00%},{"h",0.05%},]
{"d",10.00%},{"e",10.00%},{"f",10.00%},{"g",10.00%},{"h",0.05%},]
{"e",10.00%},{"f",10.00%},{"g",10.00%},{"h",0.05%},]
{"f",10.00%},{"g",10.00%},{"h",0.05%},]
{"g",10.00%},{"h",0.05%},]
{"h",0.05%},]
]
暮色呼如
相关分类