コード例 #1
0
bool newCustomer()	// function gives the number of customers in a group
{
	double B = uniform(10,60);
    
    double Q = line.qlength();
    
    double testStatistc = (40 + B)/(25 * (3+Q));
    double random = uniform(0,1);
    return random < testStatistc;
	
}