转载自:http://sobereva.com/311参考算法网址(未看,待研究):http://mathworld.wolfram.com/SpherePointPicking.htmlMarsaglia方法:在[0,1)区间内随机取两个值x1和x2,若这两个值的平方和大于等于1则重新选取。 &nbs
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号