return ((rand() % (nHighNum - nLowNum + 1.0)) + nLowNum);
{ float number = nLowNum; number += rand() % static_cast<int>( ceil(nHighNum) - ceil(nLowNum) + 1 ); number += (float) rand() / (float) 0x7FFFFFFF; return number; }
float RandomNum(float nLowNum, float nHighNum){	if (nHighNum - nLowNum + 1)		return ((rand() % (nHighNum - nLowNum + 1.0)) + nLowNum);	else		return nLowNum;}