geometry
randpoint
generate a random point on a line or a circle
Calling Sequence
Parameters
Description
Examples
randpoint(w, u, v)
w
-
the name of a random point
u
line, circle, or range
v
range
The output is a point with coordinates in the given range or lying on the given line or circle.
The command with(geometry,randpoint) allows the use of the abbreviated form of this command.
with⁡geometry:
line⁡l,x−y=1,x,y,circle⁡c,x2+y2=1,x,y:
randpoint⁡P,−1..2,−1..2
P
coordinates⁡P
0.314058468,1.880696710
randpoint⁡Q,l,−2..3
Q
coordinates⁡Q
0.190097447,−0.809902553
randpoint⁡R,c
R
coordinates⁡R
[1. cos(.8760389788 Pi), 1. sin(.8760389788 Pi)]
See Also
geometry[point]
Download Help Document