![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
概率
文章平均质量分 78
iteye_2479
这个作者很懒,什么都没留下…
展开
-
派红包随机分配
import java.util.Random;public class RedbgTest { final double minBag = 1; int myRand(int left,int right){ Random rand=new Random(); int i= rand.nextInt(10000000); if(left>=righ...原创 2015-06-25 09:30:46 · 107 阅读 · 1 评论 -
摇塞子概率 1-6出现概率可配置
/** * * JAVA 返回随机数,并根据概率、比率 * <p/> * * @author <a href="mailto:durb@etuo.cn">durb</a> * @version Date: 2015年4月15日 下午3:22:22 * @serial 1.0 * @since 2015年4月15日 下午...原创 2015-04-15 16:47:08 · 518 阅读 · 0 评论