#include <iostream>
#include <stdlib.h>
#include <time.h> #define random(a,b) (rand() % (b-a) + a) using namespace std; int main()
{
srand((unsigned)time(NULL));
for(int i=; i<; i++)
cout << random(,) << "\t" << rand()/double(RAND_MAX) << endl;
}
#include <iostream>
#include <stdlib.h>
#include <time.h> #define random(a,b) (rand() % (b-a) + a) using namespace std; int main()
{
srand((unsigned)time(NULL));
for(int i=; i<; i++)
cout << random(,) << "\t" << rand()/double(RAND_MAX) << endl;
}