Back to News
Advertisement
Advertisement

⚑ Community Insights

Discussion Sentiment

50% Positive

Analyzed from 67 words in the discussion.

Trending Topics

#random#functions#orientation#disk#rejection#sampling#https#picking#depends#trigonometric

Discussion (3 Comments)Read Original on HackerNews

millipedeβ€’about 5 hours ago
Picking a random orientation depends on trigonometric functions. In order for this to calculate, it would be a lot cooler if it didn't depend on transcendental functions.
LegionMammal978β€’about 2 hours ago
You can pick a uniform random orientation without trig functions by first generating a random point in the unit disk via rejection sampling, then projecting it onto the boundary [0].

Of course, using rejection sampling for disk points will give you an estimate for Ο€ more directly.

[0] https://mathworld.wolfram.com/CirclePointPicking.html

IvanLudvigβ€’2 days ago