I am trying to use a boost random generator to make random points uniformly distributed over a plane surface. I have the following link for doing it in a single dimension:
Here they use boost::uniform_int<>
to generate numbers as int
in a single dimension.
But in my case I wish to generate numbers as float
in two dimensions over a plane.
Is there any distribution type available to use it in two dimensions? (I have seen boost::uniform_on_sphere
, but it is for spherical surfaces.)