RandomPointIn 命令
- RandomPointIn( <Region> )
-
在给定多边形或闭合圆锥曲线内创建一个随机点。
- RandomPointIn( <List of Points> )
-
返回具有给定顶点的多边形内的一个随机点。
RandomPointIn(Polygon(A,B,C))
和
RandomPointIn(A,B,C)
均给出三角形 ABC 内的随机点。
要获取属于该列表的随机点,请使用 RandomElement 代替。
- RandomPointIn( <xMin>, <xMax>, <yMin>, <yMax> )
-
创建一个随机点,其 x 坐标来自区间 [xMin, xMax],y 坐标来自区间 [yMin, yMax]。