#include <iostream>
#include <ctime>
#include <cstdlib>
#include <valarray>
using namespace std;
int main()
{
val seed=let
val m=Date.minute(Date.fromTimeLocal(Time.now()))
val s=Date.second(Date.fromTimeLocal(Time.now()))
in Random.rand(m,s)
end;
int max, random_number;
cout << "please input max integer: ";
cin >> max;
srand(time(0));
random_number = (rand () % max) + 1000;
cout << random_number << endl;
system("pause");
return 0;
}