it keeps telling me to declare val but idk what im missing

#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;
}
I don't know what this is:
1
2
3
4
5
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;
but it isn't C++.

The rest of the code seems fine, at a quick glance.
Topic archived. No new replies allowed.