可以添加多个对象,为其分配权重,然后根据权重随机返回,一般用于随机获得奖励
github.com/bluesliu/weights
bluesliu/weights
Latest: 0.0.4
7 years ago