static void CalcRandomTrees (double baseheight, double basediam, double &height, double &diam) {
	double hhh = baseheight * sizefact[g_game.treesize];
	double minsiz = hhh / varfact[g_game.treevar];
	double maxsiz = hhh * varfact[g_game.treevar];
	height = XRandom (minsiz, maxsiz);
	diam = XRandom (height/diamfact, height);
}
Example #2
0
int IRandom (int min, int max) {
	return (int)XRandom ((double)min, (double)max + 0.999999);
}