float $xpos;
float $ypos;
float $zpos;
for ($i = 0;$i<20;$i++)
{
$xpos = rand(-10, 10);
$ypos = 0;
$zpos = rand(-10, 10);
cone -p $xpos $ypos $zpos;
}
that's what i'd do. You could make it "clever" by making take the size of the surface into account but I don't have time to write that atm.
Alan
Technical Director - Framestore
Currently working on: Your Highness
IMDB