Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-deepmind/alphageometry
/ random_points
Function
random_points
numericals.py:1272–1273 ·
view source on GitHub ↗
(n: int = 3)
Source
from the content-addressed store, hash-verified
1270
1271
1272
def
random_points(n: int = 3) -> list[Point]:
1273
return
[Point(unif(-1, 1), unif(-1, 1))
for
_ in range(n)]
1274
1275
1276
def
random_rfss(*points: list[Point]) -> list[Point]:
Callers
15
test_sketch_3peq
Method · 0.85
test_sketch_aline
Method · 0.85
test_sketch_amirror
Method · 0.85
test_sketch_bisect
Method · 0.85
test_sketch_bline
Method · 0.85
test_sketch_circle
Method · 0.85
test_sketch_eqangle3
Method · 0.85
test_sketch_eqangle2
Method · 0.85
test_sketch_reflect
Method · 0.85
test_sketch_rotaten90
Method · 0.85
test_sketch_rotatep90
Method · 0.85
test_sketch_s_angle
Method · 0.85
Calls
1
Point
Class · 0.70
Tested by
15
test_sketch_3peq
Method · 0.68
test_sketch_aline
Method · 0.68
test_sketch_amirror
Method · 0.68
test_sketch_bisect
Method · 0.68
test_sketch_bline
Method · 0.68
test_sketch_circle
Method · 0.68
test_sketch_eqangle3
Method · 0.68
test_sketch_eqangle2
Method · 0.68
test_sketch_reflect
Method · 0.68
test_sketch_rotaten90
Method · 0.68
test_sketch_rotatep90
Method · 0.68
test_sketch_s_angle
Method · 0.68