【发布时间】:2018-09-15 14:48:06
【问题描述】:
例如,给定 90 到 100 之间的范围:
float a = 100;
float b = 93;
float c = 106;
a *= random.nextFloat() * 0.2f + 0.9f;
//what's the chance of a > b
//what's the chance of a > c
【问题讨论】:
-
你在问什么?
-
这看起来像是一个家庭作业问题。要求我们为你做作业通常不会很顺利。