#include "stdafx.h"
#include "cv.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/core/core.hpp"
#include <iostream>
using namespace std;
using namespace cv;
int _tmain(int argc, _TCHAR* argv[])
{
RNG& rng=theRNG();
int random=(unsigned)rng;
double a= (double)rng;
printf("the random number:%d ,%f\n",random,a);
return 0;
}
在RNG& rng=theRNG();语句之后,每次用到rng变量的地方,会产生变化的数值,但是程序重新运行,其结果还是一样的。求高手解答!!!!