小点,但这是随机类的最佳使用..
for(int i = 0; i < _samples; i++) { bool intersects = false; float rand = 0; rand = _radius - (float)(new Random().NextDouble()*(2*_radius));
如果这不是..
var rnd = new Random() for(int i = 0; i < _samples; i++) { bool intersects = false; float rand = 0; rand = _radius - (float)(rnd.NextDouble()*(2*_radius));