$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] boost random in 2 dimensions
From: Gabriel Redner (gredner_at_[hidden])
Date: 2013-01-25 12:50:45
To generate uniformly-distributed random points on a flat plane, just
draw two uniformly-distributed floats for your two coordinates. You
don't have to do anything special, which is why the library doesn't
provide anything for this. The reason uniform_on_sphere exists is
because that problem does not have a trivial solution.
-Gabe