Skip to main content
Share Your Experience: Take the 2024 Developer Survey
1 vote

Efficiently generate a random position inside an outer rectangle but outside an inner rectangle

implicit assumption don't want to use [rejection sampling]. The source code and Review Context left it implicit that we're concerned about being frequently called with a "big" inner ...
J_H's user avatar
  • 28.1k

Only top scored, non community-wiki answers of a minimum length are eligible