#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=0; i<10; i++) cout << random(1,100) << " " << rand()/double(RAND_MAX) << endl; }