CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
int main()
{
srand(time(0));
for(int x=1;x<=10;x++)
{
cout<<rand()<<endl;
}
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run