Here is how you can use the LabTalk function Poisson,
void tt(int nCol = 1)
{
LT_execute("temp=Poisson(1000, 3)");// create 1000 points with mean = 3, result in dataset called temp
Worksheet wks = Project.ActiveLayer();
Dataset dtemp("temp");// dataset temp can be accessed in OC like this
Dataset aa(wks,nCol-1);// col(1), col(2) etc as Dataset
aa = dtemp;
LT_execute("del temp");// best to clean up temp dataset
}
Or you can also call the nag_poisson_dist function, which is more involved.
CP